Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

how to access multiple records #10

Open
GoogleCodeExporter opened this issue Apr 22, 2015 · 0 comments
Open

how to access multiple records #10

GoogleCodeExporter opened this issue Apr 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

I'm sure this is a simple one for the experienced one but I have spent hours 
trying to find a solution for this an cannot find any suitable documentation:


I m using javascript and would like to convert a string holding JSON 
text-format to an array of objects. 
Example of the string:
var strTest = "{\"myname\":\"George Clooney\",\"myage\":25};" + 
"{\"myname\":\"david copperfield\",\"myage\":45}";  
var myJsonObj = jsonParse(strTest);

I would have expected that myJsonObj would have TWO objects stored in an array 
but it is giving me an error saying
"cont is undefined" 
It is a variable found in the downloaded source:
json-sans-eval.js


thanks alot

Original issue reported on code.google.com by borgb...@gmail.com on 25 Jul 2011 at 3:57

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant