JSON Concepts: Difference between revisions
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
==Strings== | ==Strings== | ||
Strings are represented as: | |||
<pre> | |||
"this is a string" | |||
</pre> | |||
and they are quoted. Always use double quotes ("), never use single quotes ('). | |||
==Numbers== | ==Numbers== |
Revision as of 16:15, 25 February 2017
Internal
Data Types
JSON data types are: null, Booleans, Strings, Numbers, Objects (which can be thought of as Maps) and Arrays.
null
Booleans
Booleans are represented as
true false
and they are not quoted.
Strings
Strings are represented as:
"this is a string"
and they are quoted. Always use double quotes ("), never use single quotes (').
Numbers
Numbers are represented as:
10
and they are not quoted.