Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Data Structures
Data Structureseasy

Example of valid JSON structure

Tags
#json#format#example
Back to categoryPractice quiz

Answer

Valid JSON is a text format for objects and arrays using {} and [], where keys and string values are in double quotes, and values can be only: string, number, boolean, null, array, or object. Example: { "name": "John", "age": 30, "roles": ["dev"], "active": true }.

{
  "name": "John Doe",
  "age": 30,
  "isEmployed": true,
  "roles": ["developer", "admin"],
  "address": {
    "city": "New York",
    "zip": "10001"
  }
}

Related questions

Spring
Spring MVC `@RequestBody`: what does it do and a common pitfall?
#spring#mvc#requestbody
PostgreSQL
JSON vs JSONB in Postgres — what’s the difference (and why JSONB is common)?
#json#jsonb#gin