1/3/2011 12:19:04 AM
Title:
How to decode JSON string? Urgent plz help !!
I have following JSON string and want to decode it in flex arraycollection of objects.
{"buckets":[{"bucketID":0,"startingIndex":0,"endingIndex":17476,"lowThreshold":0.0,"highThreshold":0.15,"docCount":17477},{"bucketID":1,"startingIndex":17477,"endingIndex":20254,"lowThreshold":0.15,"highThreshold":0.25,"docCount":2778},{"bucketID":2,"startingIndex":20255,"endingIndex":22230,"lowThreshold":0.25,"highThreshold":0.35,"docCount":1976},{"bucketID":3,"startingIndex":22231,"endingIndex":109549,"lowThreshold":0.35,"highThreshold":1.0,"docCount":87319}],"subscriber":1,"caseID":2,"runID":3,"histogramID":0,"name":"Histogram_0"}
Thanks,
Nilesh
1/7/2011 12:34:26 AM
i think you can split the strings in a loop and add the data to an array collection