2

I got the the Json value from server as

{"User":   
        {"loginId":"Rajaa",
         "firstName":"Rajaa",
         "lastName":"Ramanathan",
         "emailId": "[email protected]",
         "creationDate":"2011-01-25T12:00:00+05:30",
         "lastUpdate":"2011-01-25T12:00:00+05:30",
         "updated":"2"}
}

I want to take loginId,firstName etc as a string.

Can any one help me?

1

2 Answers 2

2

You can use GSON, check user guide

Also See

Sign up to request clarification or add additional context in comments.

Comments

1

Use json-simple http://code.google.com/p/json-simple/ check this decoding example http://code.google.com/p/json-simple/wiki/DecodingExamples

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.