Difference between revisions of "JSON File Format Tips"

From Pikes Peak Makerspace Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 18: Line 18:
 
==Tips==
 
==Tips==
 
*file extension is .json (but not .js)
 
*file extension is .json (but not .js)
*in JSON files, whitespace is allowed between elements punctuation, for example
+
*in JSON files, whitespace is allowed between elements punctuation, for example
*comments are generally not a part of JSON files, but some variations do allow comments
+
*comments are generally not a part of JSON files, but some variations do allow comments
*JSON can be stored directly into some relational databases
+
*JSON can be stored directly into some relational databases
  
 
==External Training==
 
==External Training==
Line 29: Line 29:
  
 
:'''[[wikipedia:JSON|JSON]]''' — on Wikipedia
 
:'''[[wikipedia:JSON|JSON]]''' — on Wikipedia
 
==Related Pages==
 
'''Links to related PPM Wiki pages:'''
 
 
===[[Mall Map]]===
 
 
===[[Visual Studio Code Tips]]===
 
  
 
==Hand-Curated Links==
 
==Hand-Curated Links==
Line 50: Line 43:
 
:'''[https://yaml.org/ YAML]''' — "a human-readable data serialization language"
 
:'''[https://yaml.org/ YAML]''' — "a human-readable data serialization language"
  
==For Additional Help==
+
==Additional Help==
 +
'''Links to related PPM Wiki pages:'''
 +
 
 +
===[[Mall Map]]===
 +
 
 +
===[[Visual Studio Code Tips]]===
 
:Use the PPM Slack channel #computing
 
:Use the PPM Slack channel #computing
 
:[[How To Slack#PPM Channel Names and Descriptions|'''List of all PPM Slack channels''']]
 
:[[How To Slack#PPM Channel Names and Descriptions|'''List of all PPM Slack channels''']]
 
:Note that we have a Slack channel (#job-board) for members to post, discuss, or accept job opportunities either within PPM or from the community.
 
:Note that we have a Slack channel (#job-board) for members to post, discuss, or accept job opportunities either within PPM or from the community.
 
{{Template:Footer}}
 
{{Template:Footer}}
{{Template:Ideas into reality}}
 
 
<p style="padding:0.2em 0.4em; background:#ff6c00; color:#FFFFFF; font-size:15%;"> &nbsp; </p>
 
<p style="padding:0.2em 0.4em; background:#ff6c00; color:#FFFFFF; font-size:15%;"> &nbsp; </p>
 
[[Category:Software]]
 
[[Category:Software]]

Latest revision as of 15:21, 8 December 2024

JSON is an acronym that stands for JavaScript Object Notation, a human-readable document format for storing and exchanging data.

Generally, it is text that is easy for humans to read and write, and easy for machines to parse (read) and generate (write).

Douglas Crockford, the developer of JSON and various JavaScript tools, says it is pronounced "Jason", but it is popularly known as "Jay'-sawn"

Variations include GeoJSON for simple geographic features.

Alternative formats include CSV (Comma Separated Values, for data) and YAML (usually for configuration files).

Contact Us if you cannot find your answer here on our Wiki or if you notice any information that is outdated.

 


burst of white rays on orange background

Tips

  • file extension is .json (but not .js)
  • in JSON files, whitespace is allowed between elements punctuation, for example
  • comments are generally not a part of JSON files, but some variations do allow comments
  • JSON can be stored directly into some relational databases

External Training

Links to external sites:

Introducing JSON — The JSON Data Interchange Standard.
JSON - Introduction — on W3Schools
JSON — on Wikipedia

Hand-Curated Links

Links to member-recommended external sites:

Douglas Crockford — on Wikipedia
GeoJSON — simple geographic features
jq — lightweight and flexible command-line JSON processor
pandoc — convert between (numerous markup and word processing) file formats
YAML — "a human-readable data serialization language"

Additional Help

Links to related PPM Wiki pages:

Mall Map

Visual Studio Code Tips

Use the PPM Slack channel #computing
List of all PPM Slack channels
Note that we have a Slack channel (#job-board) for members to post, discuss, or accept job opportunities either within PPM or from the community.

Search the PPM Wiki — include Content pages as well as Multimedia.

Contact Us if you cannot find your answer here on our Wiki or if you notice any information that is outdated.