I am a new guy for JSON, I don't know to send JSON object and Array...

But, I pass the JSON values like the below format,

```
                object.put("code", "1");
                object.put("message", "Success");
                object.put("Name", "xxx");
                object.put("F_Name","yyy");
                object.put("Address", "zzz");
                object.put("Phone_No","123");

                out.println(object);

```

But it display like

```
{"Phone_No":"123","message":"Success","Address":"zzz","Name":"xxx","F_Name":"yyy","code":"1"}

```

I don't know, why it's display like this. How to order this? Please help me.

And this is what format, Array format or object format...

And tell how to send array values in JSON..

Thanks in advance..