Send and parse json in Android, Android processing JSON string

Source: Internet
Author: User
Tags django server

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.