Send and parse json in android, android processes json strings, and androidjson

Source: Internet
Author: User
Tags django server

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.

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.