kwix-ishikawa / vba-json

Automatically exported from code.google.com/p/vba-json
0 stars 0 forks source link

Cannot parse a JSON string containing an array... #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Put this string in a variable:

{"total_rows":36778,"offset":26220,"rows":[
{"id":"6b80c0b76","key":"a@bbb.net","value":{"entryid":"81151F241C2500","subject
":"test subject","senton":"2009-7-09 22:03:43"}},
{"id":"b10ed9bee","key":"b@bbb.net","value":{"entryid":A7C3CF74EA95C9F","subject
":"test subject2","senton":"2009-4-21 10:18:26"}}]}

2. Instantiate a jsonlib object:  "Dim lib As New jsonlib"
3. Define a new JSON object: "Dim json As Object"
4. Instantiate the JSON object by invoking the jsonlib's "parse" method, the 
JSON string is the  parameter: "Set json = lib.parse(mystring)"

What is the expected output? What do you see instead?
I would expect to be able to access the elements in the json object; the parse 
method returns an error.

What version of the product are you using? On what operating system?
r2 from Feb 14,2009 - OS = Windows XP

Please provide any additional information below.
Parsing JSON strings containing a single record works perfectly, I'm using your 
VBA library to read/write/delete data in CouchDB.

Original issue reported on code.google.com by c...@gmx.net on 18 Oct 2009 at 3:14

GoogleCodeExporter commented 8 years ago
{"Cusip":[123,456,789],"Date":[1,2,3],"CloseType":["stock","bond","stock"]}
THIS IS MY JSON STRING 

but when i try to parse(mystring)..I get back the same string

Original comment by amrita.c...@gmail.com on 5 Mar 2010 at 3:58