Prepared for Dr. Azrul Hazri bin Jantan Present by Zainal Abdul Kahar
By Charles Severance!
University of Michigan
❖ Discovered by Douglas Crockford self-
❖ Invent and applying JSON in 2001 at State
❖ Create a webpage to make it as standard!
❖ Popular format for data serialisation!
❖ Extensively use to encode data for transfer
between server and Ajax application, to
connect two servers communicating via
interchange format. It is easy for humans to read and write
and easy for machines to parse and generate!
❖ JSON is a text format that is completely language
independent but uses conventions that are familiar to
programmers of the C-family of languages, including C, C+
❖ The most common structures use in programming are scalar variables, linear
lists and key-value pair!
❖ JSON represents these structures in a form of direct serialisation!
❖ Greatly reduce the mismatch between in memory structure in application
and the serialisation format!
❖ JSON is convenient and efﬁcient!
such as XML
JSON vs XML
❖ It is a constant debate between JSON and XML for the right formatting for
❖ XML is an enterprise solution with many toolset for manipulation!
❖ JSON slowly displacing XML as the preferred way for data exchange!
❖ JSON has the natural advantage as a serialisation format which exactly the
same as data structures that programming language represent
JSON vs XML
❖ The number of new API using JSON is increasing and displacing XML
❖ JSON is built on two structures:!
❖ A collection of name/value pairs. In various languages, this is realised as
an object, record, struct, dictionary, hash table, keyed list, or associative
❖ An ordered list of values. In most languages, this is realised as an array,
vector, list, or sequence.
❖ Although JSON is intended solely as a data serialisation format, its design as
program to errant or malicious scripts. This is a serious issue when dealing
with data retrieved from the Internet.
Future of JSON
❖ According to Charles, once the programmer switch to JSON, they seldom get
back to XML!
❖ The more programmers use JSON, the requirement for schema for JSON’s
❖ There are effort to add value to JSON without changing it such as “JSON for