Hi Experts,
I want to count the json data in it and i tried with
var propertyData = JSON.parse(rsp);
var length = Object.keys(propertyData).length;
Open in new window
. but my json lenght is 1 . Instead function returning me the 6 which is each property of json . how can i get rid of it
My Json
"{\r\n \"FullImage\": \"http://localhost:57226/img/image1.JPG\",\r\n \"imageThumb\": \"http://localhost
:57226/img/image1.JPG\",\r\n \"description\": \"Kitchen\",\r\n \"Address\": \"Test\",\r\n \"imageid
\": 1,\r\n \"TextColor\": \"White\"\r\n}"
Open in new window
Thanks Experts
Counting is simple:
Open in new window