php - JSON Encode showing unexpected shashes -


when encode data adds unexpected slash.

here data

 ""\"\\\"[{\\\\\\\"propertyid\\\\\\\":\\\\\\\"544068\\\\\\\",\\\\\\\"floorplanid\\\\\\\":\\\\\\\"2175341\\\\\\\",\\\\\\\"floorplanname\\\\\\\":\\\\\\\"50 regent 1ap\\\\\\\",\\\\\\\"beds\\\\\\\":\\\\\\\"1\\\\\\\",\\\\\\\"baths\\\\\\\":\\\\\\\"1.00\\\\\\\",\\\\\\\"minimumsqft\\\\\\\":\\\\\\\"667\\\\\\\",\\\\\\\"maximumsqft\\\\\\\":\\\\\\\"667\\\\\\\",\\\\\\\"minimumrent\\\\\\\":\\\\\\\"2475\\\\\\\",\\\\\\\"maximumrent\\\\\\\":\\\\\\\"2475\\\\\\\",\\\\\\\"minimumdeposit\\\\\\\":\\\\\\\"0\\\\\\\",\\\\\\\"maximumdeposit\\\\\\\":\\\\\\\"0\\\\\\\",\\\\\\\"availableunitscount\\\\\\\":\\\\\\\"1\\\\\\\",\\\\\\\"availabilityurl\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"floorplanimageurl\\\\\\\":\\\\\\\"http:\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\/cdn.rentcafe.com\\\\\\\\\\\\\\\/dmslivecafe\\\\\\\\\\\\\\\/3\\\\\\\\\\\\\\\/544068\\\\\\\\\\\\\\\/50reg1ap.jpg\\\\\\\",\\\\\\\"floorplanimagename\\\\\\\":\\\\\\\"50reg1ap.jpg\\\\\\\",\\\\\\\"propertyshowsspecials\\\\\\\":\\\\\\\"0\\\\\\\",\\\\\\\"floorplanhasspecials\\\\\\\":\\\\\\\"0\\\\\\\",\\\\\\\"unittypemapping\\\\\\\":\\\\\\\"0050r1ap\\\\\\\"}]\\\"\""" 

try

json_encode($data, json_unescaped_slashes); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -