-3
{"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" }} }}
0

1 Answer 1

0

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";
            }
        }
    }
}
Sign up to request clarification or add additional context in comments.

18 Comments

actually it there but when i was posting it went wrong i guess
i am posting the correct formate please check out onces
{ "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" } } } }
this is my json string it should be called recursively to get all the values of its child
@MaryalaBharath Even now it is wrong.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.