🌐
W3Schools
w3schools.com › js › js_json_syntax.asp
JSON Syntax
JS Examples JS HTML DOM JS HTML Input JS HTML Objects JS HTML Events JS Browser JS Editor JS Exercises JS Quiz JS Website JS Syllabus JS Study Plan JS Interview Prep JS Bootcamp JS Certificate JS Reference ... JSON data is written as name/value pairs (aka key/value pairs).
🌐
JSON
json.org › example.html
JSON Example
<!DOCTYPE glossary PUBLIC "-//OASIS//DTD DocBook V3.1//EN"> <glossary><title>example glossary</title> <GlossDiv><title>S</title> <GlossList> <GlossEntry ID="SGML" SortAs="SGML"> <GlossTerm>Standard Generalized Markup Language</GlossTerm> <Acronym>SGML</Acronym> <Abbrev>ISO 8879:1986</Abbrev> <GlossDef> <para>A meta-markup language, used to create markup languages such as DocBook.</para> <GlossSeeAlso OtherTerm="GML"> <GlossSeeAlso OtherTerm="XML"> </GlossDef> <GlossSee OtherTerm="markup"> </GlossEntry> </GlossList> </GlossDiv> </glossary>
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn_web_development › Core › Scripting › JSON
Working with JSON - Learn web development | MDN
The key takeaway is that there's ... you would with an object declared using the same object literal syntax. Note: We've made the JSON seen above available inside a variable in our JSONTest.html example (see the source code)....
🌐
Hostinger
hostinger.com › home › tutorials › what is json: understanding syntax, storing json data and downloadable cheat sheet
What Is JSON? Syntax, Examples + Cheat Sheet
September 9, 2025 - As a result, JSON object literal syntax looks like this: {“key”:“value”,“key”:“value”,“key”:“value”.} In this section, we’ll discuss the types of JSON values.
🌐
RestfulAPI
restfulapi.net › home › json › json syntax
JSON Syntax
November 3, 2023 - A JSON document may contain information separated by the following separators or tokens. 1. JSON name-value pairs example Name-value pairs have a colon between them as in “name” : “value”. JSON names are on the left side of the colon.
🌐
Micro Focus
microfocus.com › documentation › silk-performer › 195 › en › silkperformer-195-webhelp-en › GUID-6AFC32B4-6D73-4FBA-AD36-E42261E2D77E.html
JSON Object Structure
{ } //Empty JSON object { “StringProperty”: “StringValue”, “NumberProperty”: 10, “FloatProperty”: 20.13, “BooleanProperty”: true, “EmptyProperty”: null } { “NestedObjectProperty”: { “Name”: “Neste Object” }, “NestedArrayProperty”: [10,20,true,40] }
🌐
mabl help
help.mabl.com › hc › en-us › articles › 19078205331348-JSON-structure-and-syntax
JSON structure and syntax – mabl help
For example, an API call that authenticates a user may return the following response body to indicate that a user is logged in: ... This JSON response contains just one property with a key of "authenticated" and a value of true.
Find elsewhere
🌐
TutorialsPoint
tutorialspoint.com › home › json › json syntax
Understanding JSON Syntax
March 14, 2013 - Learn the essential syntax of JSON, including key-value pairs, data types, and best practices for writing JSON data.
🌐
SitePoint
sitepoint.com › blog › javascript › json syntax and tips
JSON Syntax and Tips — SitePoint
February 12, 2024 - This often involves adding indentation and line breaks. Many programming languages have built-in functions for pretty-printing JSON data. For example, in JavaScript, you can use JSON.stringify(data, null, 2) to pretty-print JSON data with 2 spaces of indentation.
🌐
Spiceworks
spiceworks.com › spiceworks inc › soft-tech › json types, functions, and uses with examples - spiceworks inc
JSON Types, Functions, and Uses with Examples
December 16, 2025 - JSON (JavaScript Object Notation) is defined as a file format used in object-oriented programming that uses human-readable language, text, and syntax to store and communicate data objects between applications. This article uses examples to explain how JSON works, the key types of JSON data, ...
🌐
W3Schools
w3schools.com › js › js_json.asp
W3Schools.com
In the example above, the object "employees" is an array. It contains three objects. Each object is a record of a person (with a first name and a last name). A common use of JSON is to read data from a web server, and display the data in a web page. For simplicity, this can be demonstrated using a string as input. First, create a JavaScript string containing JSON syntax:
🌐
JSON
json.org
JSON
ECMA-404 The JSON Data Interchange Standard.
🌐
GeeksforGeeks
geeksforgeeks.org › json
JSON Tutorial | GeeksforGeeks
February 27, 2025 - This method takes a JavaScript object as input and returns a JSON-formatted string representing that object. Syntax: JSON.stringify(value, replacer, space);Parameters: value: It is the value that is t
🌐
Squarespace
developers.squarespace.com › what-is-json
What is JSON? — Squarespace Developers
The key/value pair "bar" : "Hello" is nested inside the key/value pair "foo" : { ... }. That's an example of a hierarchy in JSON data.
🌐
YouTube
youtube.com › web dev simplified
Learn JSON in 10 Minutes - YouTube
In this video we will cover everything you need to know about JSON in only 10 minutes. We will cover what JSON is, why JSON is important, what JSON is used f...
Published   November 1, 2018
Views   864K
🌐
Wikipedia
en.wikipedia.org › wiki › JSON
JSON - Wikipedia
March 6, 2005 - The current ECMA standard states, "The JSON syntax does not impose any restrictions on the strings used as names, does not require that name strings be unique, and does not assign any significance to the ordering of name/value pairs." Objects are delimited with curly brackets and use commas to separate each pair, while within each pair, the colon ":" character separates the key or name from its value.
🌐
freeCodeCamp
freecodecamp.org › news › what-is-json-a-json-file-example
JSON for Beginners – JavaScript Object Notation Explained in Plain English
November 29, 2021 - No comments (// or / /) are allowed in JSON data. (But you can get around that, if you're curious.) ... A collection of key-value pairs enclosed by a pair of curly braces {...}. You saw this as an example above.
🌐
DigitalOcean
digitalocean.com › community › tutorials › an-introduction-to-json
An Introduction to JSON | DigitalOcean
August 24, 2022 - Each of the data types that are ... own syntax, meaning strings will be in quotes, but numbers will not be. With .json files, you’ll typically get a format expanded over multiple lines, but JSON can also be written all in one line, as in the following example...
🌐
Stack Overflow
stackoverflow.blog › 2022 › 06 › 02 › a-beginners-guide-to-json-the-data-format-for-the-internet
A beginner's guide to JSON, the data format for the internet - Stack Overflow
Currently, you can get equivalent functionality by exporting a JavaScript Object the same as your desired JSON from a JavaScript file. ... Now this object will be stored in the constant, data, and will be accessible throughout your application using import or require statements. Note that this will import a copy of the data, so modifying the object won’t write the data back to the file or allow the modified data to be used in other files. Once you have a variable containing your data, in this example data, to access a key’s value inside it, you could use either data.key or data["key"]. Square brackets must be used for array indexing; for example if that value was an array, you could do data.key[0], but data.key.0 wouldn’t work.
🌐
JSONata
docs.jsonata.org › simple
Simple Queries · JSONata
Here are some example expressions and their results when applied to the above JSON document: ... Path not found. Returns nothing (i.e. Javascript undefined) ... JSON arrays are used when an ordered collection of values is required. Each value in the array is associated with an index (position) rather than a name, so in order to address individual values in an array, extra syntax ...