Loading
Creating JSON objects in java

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  What is JSON , how to create JSON objects in java ?


Ans)

JSON is short form of JavaScript Object Notation, is a lightweight text-based open standard
designed for human-readable data interchange, th
is could be considered as an alternative for
XML. It is derived from the JavaScript scripting language for representing simple data
structures and associative arrays, called objects.

Example JSON Schema:

{
        "name":"SampleProduct",
        "properties":
        {
                "id":
                {
                        "type":"number",
                        "required":true
                },
                "name":
                {
                        "type":"string",
                        "required":true
                },
                "price":
                {
                        "type":"number",
                       "required":true
                }
        }
 }
Example JSON object for above schema :
{
        "id": 1,
        "name": "Smith",
        "price": 88,
 }



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Creating JSON objects in java


Creating JSON objects in java

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free