{"usercredentials": { "user": {"id": 194}, "modules": {"module": { "roles": {"role": {"name": "Channel Partner Sales User","id": 5 "previllage": {"name": "Product Sales User","id": 6},"URl": "asdfdsf"}},"name": "Channel Partners","id": 4,"URl": "adfsfddf" }} }}
1 Answer
There's an error in your JSON. You cannot parse it:
{
"usercredentials": {
"user": {},
"modules": {
"module": {
"roles": {
"role": {
"name": "Channel Partner Sales User",
"id": 5,
"previllage": {},
"URl": "192.168.1.11:8080/SSS/chp/dashboard.html";
//-------------- You cannot have stuff like this-------------------------^
}
},
"name": "Channel Partners",
"id": 4,
"URl": "192.168.1.11:8080/SSS/chp/dashboard.html";
}
}
}
}
18 Comments
Maryala Bharath
actually it there but when i was posting it went wrong i guess
Maryala Bharath
i am posting the correct formate please check out onces
Maryala Bharath
{ "usercredentials":{ "user":{ }, "modules":{ "module":{ "roles":{ "role":{ "name":"Channel Partner Sales User", "id":5, "previllage":{ }, "URl":"192.168.1.11:8080/SSS/chp/dashboard.html" } }, "name":"Channel Partners", "id":4, "URl":"192.168.1.11:8080/SSS/chp/dashboard.html" } } } }
Maryala Bharath
this is my json string it should be called recursively to get all the values of its child
Praveen Kumar Purushothaman
@MaryalaBharath Even now it is wrong.
|