Introduction To Json
Introduction To Json
Json
About Jeff Fox
• 16 year web development professional
• (Almost) entirely self taught
• Has used various Ajax-esque data technologies since
2000,including XML,MS data islands and AMF for Flash
• Develops JavaScript based web apps that rely on JSON for
data workflow
Overview
• What is JSON?
• Comparisons with XML
• Syntax
• Data Types
• Usage
• Live Examples
JSON is…
• A lightweight text based data-interchange format
• Completely language Independent
• Based on a subset of the JavaScript Programming
Language
• Easy to understand , manipulate and generate
JSON is NOT….
• Overly Complex
• A “document” format
• A markup language
• A programming language
Why use JSON ?
• Straightforward syntax
• Easy to create and manipulate
• Can be natively parsed in JavaScript using eval()
• Supported by all major JavaScript frameworks
• Supported by most backend technologies
JSON vs XML