Getting start with JSON
Chapters
Support JSON Data types
JSON supports six data types:
- Primitive Types
- String
- Number
- Boolean
- Null
- Structure Type
- Object
- Array
Here is our data type hierarchy
The supported data types with respective examples and definitions are highlighted in the table below
Number |
A number value, can be a floating point or integer
|
String |
It is series of characters (numbers, symbols or letters) |
Boolean |
True or false
|
Array |
Sequence of comma-separated values (any data type), enclosed in square brackets.
|
Object |
Unordered collection of comma-separated key/value pairs, enclosed in curly braces, properties (keys) are distinct strings.
|
Null |
Variable with null (empty) value.
|
The Unsupported Data Types are:
Undefined var myUndefined; |
Variable with no value assigned.
|
Regular Expression var myRegEx = /json/i; |
Variable containing a sequence of characters that form a search pattern.
|
In the next part of this tutorial we will quickly get through JSON Objects
Description
In this tutorial you will learn
- What is JSON
- Syntax
- Datatypes with JSON
- Objects
- Schema
- XML vs JSON
- Using with PHP and Java
This tutorial is a quick walkthrough over the technology
Learning Objectives
Objective of this tutorial is to give you enough information on JSON to get you started with the technology
Author: Subject Coach
Added on: 20th Jul 2015
You must be logged in as Student to ask a Question.
None just yet!