Simple JSON Object Example

Simple JSON Object example with formatted output. Learn JSON syntax with practical examples.

Open JSON Formatter →

Simple JSON Object

Here's an example of a simple json object:

Minified

{"name":"John","age":30}

Formatted

{
  "name": "John",
  "age": 30
}

JavaScript Usage

// Parse JSON
const data = JSON.parse('{"name":"John","age":30}');

// Stringify with formatting
JSON.stringify(data, null, 2);

Related Tools