JSON User Object
Here's an example of a json user object:
Minified
{"id":1,"username":"john_doe","email":"john@example.com","active":true}
Formatted
{
"id": 1,
"username": "john_doe",
"email": "john@example.com",
"active": true
}
JavaScript Usage
// Parse JSON
const data = JSON.parse('{"id":1,"username":"john_doe","email":"john@example.com","active":true}');
// Stringify with formatting
JSON.stringify(data, null, 2);