In the application I developed, I wanted to send the message to a Django server as a JSON object and parse the JSON response from the server and populate it with the corresponding view list.
I used to know a little bit about JSON, and I wanted to return the following format from the server
{
"POST": {
"username": "Someusername",
"Message": "This is a sweet message",
"Image": "Http://localhost/someimage.jpg",
"Time": "Present Time"
},
}
What do I have to learn if I want to complete these functions? Where do you start? Is there anyone who can provide me with some tutorials or links to some tutorials? It is best to have a complete solution
Processing methods
You can start with the following two open source software to complete Gson and Jackson.
Jackson uses the Objectmapper object primarily for serialization and deserialization operations.
With Jackson, you can fully serialize complex objects without pressure, or deserialize objects of various types, and Jackson can perfectly serialize objects such as the map list into JSON objects.
Original address: http://www.itmmd.com/201410/90.html
This article by Meng Meng's IT person to organize the release, reprint must indicate the source.
Send and parse json in Android, Android processing JSON string