Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json Parsing not working for complex Json object #68

Open
karthikeyanjagadeesan opened this issue Dec 11, 2015 · 0 comments
Open

Json Parsing not working for complex Json object #68

karthikeyanjagadeesan opened this issue Dec 11, 2015 · 0 comments

Comments

@karthikeyanjagadeesan
Copy link

StreamingJsonDocument.java used to parse json object. It works fine in case of simple Json. the code didn't work for json with arrays.
Eg 1: Json with complex json arrays
{
"field1":"value1",
"fieldArray1":[
{
"fieldArray2":[
{
"field2":{
"field3":{
"field4":[
"value4"
]
}
},
"field5":"value5"
}
]
},
{
"fieldArray2":[
{
"field2":{
"field3":{
"field4":[
"value4"
]
}
},
"field5":"value5"
}
]
}
],
"field6":"value6",
"fieldArray3":[
{
"field7":"value7",
"field7":"value8"
}
]
}

Eg 2:
{
"age":40,
"eyeColor":"green",
"name":"Casey Stone",
"gender":"female",
"company":"EXODOC",
"address":"760 Gold Street, Choctaw, Iowa, 3595",
"registered":"2014-03-30T18:24:14 -06:-30",
"latitude":30.904815,
"longitude":169.113457,
"tags":[
"idiot",
"fool",
"bad"
],
"friends":[
"friend":[
{
"name":"Casey Stone"
}
],
"friend":[
{
"name":"Clark Wise"
}
],
"friend":[
{
"name":"Letitia Holder"
}
]

]

}

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

No branches or pull requests

1 participant