Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Deserialize json object
Deserialize json object [message #40759] Fri, 13 September 2013 13:11 Go to previous message
andreicpp is currently offline  andreicpp
Messages: 2
Registered: September 2013
Location: Romania
Junior Member
Hello,

I am receiving via httprequest a json object which I put in a String.

This is how it looks:

sResponse={"response":{"username":"andrei","role":"user ","firstName":"andrei","lastName":"nume","email":"andrei@gmail.com","id":2,"password":"1234"},"status":{"description":[], "status":"OK"}}

How can I deserialize it and put it in an object of class

class Response {
Username usr;
Response response;
}


I tried implementing jsonize method in this class Response, and than use loadfromjson, but no positive results.

Can someone help me?
Thank you

 
Read Message
Read Message
Read Message
Previous Topic: Build options
Next Topic: SortedIndex and Less
Goto Forum:
  


Current Time: Sun May 05 10:26:36 CEST 2024

Total time taken to generate the page: 0.02985 seconds