JSON Text String Example

Q

Where to get a simple example of JSON text string?

✍: FYIcenter.com

A

You can go to JSON at Wikipedia to get the following JSON text string example:

{
  "firstName": "John",
  "lastName": "Smith",
  "isAlive": true,
  "age": 25,
  "address": {
    "streetAddress": "21 2nd Street",
    "city": "New York",
    "state": "NY",
    "postalCode": "10021-3100"
  },
  "phoneNumbers": [
    {
      "type": "home",
      "number": "212 555-1234"
    },
    {
      "type": "office",
      "number": "646 555-4567"
    },
    {
      "type": "mobile",
      "number": "123 456-7890"
    }
  ],
  "children": [],
  "spouse": null
}

 

JSON Format Syntax

What Is JSON?

Introduction of JSON

⇑⇑ JSON Tutorials

2023-09-07, 1802🔥, 0💬