Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "contacts": [
- {
- "id": "c200",
- "name": "Ravi Tamada",
- "email": "ravi@gmail.com",
- "address": "xx-xx-xxxx,x - street, x - country",
- "gender" : "male",
- "phone": {
- "mobile": "+91 0000000000",
- "home": "00 000000",
- "office": "00 000000"
- }
- },
- {
- "id": "c201",
- "name": "Johnny Depp",
- "email": "johnny_depp@gmail.com",
- "address": "xx-xx-xxxx,x - street, x - country",
- "gender" : "male",
- "phone": {
- "mobile": "+91 0000000000",
- "home": "00 000000",
- "office": "00 000000"
- }
- }
- ]
- }
- String s = "{"+ "\"contacts\": [" +
- "{" +
- "\"id\": \"c200\"," +
- "\"name\": \"Ravi Tamada\"," +
- "\"email\": \"ravi@gmail.com\"," +
- "\"address\": \"xx-xx-xxxx,x - street, x - country\"," +
- "\"gender\" : \"male\"," +
- "\"phone\": {" +
- " \"mobile\": \"+91 0000000000\"," +
- " \"home\": \"00 000000\"," +
- " \"office\": \"00 000000\"" +
- "}" +
- "}," +
- "{" +
- "\"id\": \"c201\"," +
- "\"name\": \"Johnny Depp\"," +
- "\"email\": \"johnny_depp@gmail.com\"," +
- "\"address\": \"xx-xx-xxxx,x - street, x - country\"," +
- "\"gender\" : \"male\"," +
- "\"phone\": {" +
- " \"mobile\": \"+91 0000000000\"," +
- " \"home\": \"00 000000\"," +
- " \"office\": \"00 000000\"" +
- "}" +
- "}" +
- "" +
- " ]" +
- "}";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement