Send and parse json in android, android processes json strings, and androidjson
In my developed application, I want to send messages to a Django server in the form of a JSON object, parse the JSON response from the server, and fill in the corresponding View list.
I used to understand json. I want 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 should I learn if I want to complete these functions? Start from where? Can anyone provide me with some tutorials or links? It is best to have a complete solution
Solution
You can start with the following two open-source software to complete gson and Jackson
Jackson mainly uses ObjectMapper objects for serialization and deserialization.
Jackson can be used to fully serialize complex objects without any pressure, or deserialize various types of objects. Jackson can perfectly serialize objects such as map list into json objects ..
Address: http://www.itmmd.com/201410/90.html
This article is organized and published by Meng IT personnel. The reprinted article must indicate the source.