21
PRESENTED BY - @m_smalley JSON ( and the argonauts ) INTERACTIVE 3D VERSION WITH SOURCE CODE http://r1.my/klmug/11/ Warning: Some Assembly Required

JSON and The Argonauts

Embed Size (px)

DESCRIPTION

A brief introduction to JSON and how it can be used with PHP and modern template engines such as Handelbars, AngularJS and Mustache - Source Code / Live Demo - http://r1.my/klmug/11/

Citation preview

Page 1: JSON and The Argonauts

PRESENTED BY - @m_smalley

JSON( and the argonauts )

INTERACTIVE 3D VERSION WITH SOURCE CODE

http://r1.my/klmug/11/Warning: Some Assembly Required

Page 2: JSON and The Argonauts

NOT THIS JASON

Page 3: JSON and The Argonauts

NOR THESE ARGONAUTS

IS THAT SQLI SMELL …?

Page 4: JSON and The Argonauts

RATHER THESE

Page 5: JSON and The Argonauts

1974RELATIONAL DATABASES

1989WORLD WIDE WEB

2002 = JSON.org / 2009 = MongoDB.org

IMPORTANT DATES

Page 6: JSON and The Argonauts

JSON (j for javascript)

JSONP (p for padding)

BSON (b for binary)

THE BIG THREE ONs

Page 7: JSON and The Argonauts

JSON (j for javascript)

JSONP (p for padding)

BSON (b for binary)

THE BIG THREE ONs

Supported by jQuery / PHP

Page 8: JSON and The Argonauts

[ title: “Hello JSON World”, published: 1352229385, slug: “hello-world”, content: “<p>JSON has 6 data-types</p>”, tags: [“categories”,”test”,”etc”], comments: [ { u: ”Jason”, c: “Thanks for sharing” } ]]

Page 9: JSON and The Argonauts

callback_function([ title: “Hello JSONP World”, published: 1352229385, slug: “hello-world”, content: “<p>JSONP is padded with a function</p>”, tags: [“categories”,”test”,”etc”], comments: [ { u: ”Jason”, c: “Thanks for sharing” } ]])

Page 10: JSON and The Argonauts

[ “_id”: ObjectId(“50994e2e9bd64215053f7b22”), “title”: “Hello BSON World”, “published”: ISODate(“2008-02-03T00:00-00Z”), “slug”: “hello-world”, “content”: “<p>BSON has 11 data-types</p>”, “tags”: [“categories”,”test”,”etc”], “comments”: [ { “u”: ”Jason”, “c”: “Including JS Code! :-)” } ]]

Page 11: JSON and The Argonauts

SOURCE CODE AVAILABLE – http://r1.my/klmug/11/

Page 12: JSON and The Argonauts
Page 13: JSON and The Argonauts
Page 14: JSON and The Argonauts
Page 15: JSON and The Argonauts
Page 16: JSON and The Argonauts
Page 17: JSON and The Argonauts
Page 18: JSON and The Argonauts
Page 19: JSON and The Argonauts
Page 20: JSON and The Argonauts
Page 21: JSON and The Argonauts

-- or stalk me on twitter --

@m_smalley

LEARN MORE ABOUT

MongoDB

Kuala Lumpur MongoDB User-Group:http://facebook.com/groups/klmug/