Json at work overview and ecosystem-v2.1

  • 365 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • http://codebeautify.org/view/jsonviewer

    the best site for online coading for JSON and many more languages
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
365
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
5
Comments
1
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. JSON at Work - Overview and Ecosystem Tom Marrs ArchitectTuesday, February 19, 13
  • 2. Your Profile Really? What else? How?Tuesday, February 19, 13
  • 3. What’s The Point? JSON - much more ...Tuesday, February 19, 13
  • 4. JSON EcosystemTuesday, February 19, 13
  • 5. Our AgendaTuesday, February 19, 13
  • 6. We’re Not Covering :(- REST XML SOATuesday, February 19, 13
  • 7. Where Are We?Tuesday, February 19, 13
  • 8. JSON Beginnings www.json.org 2001 - Douglas Crockford 2006 - IETF - RFC 4627 The “x” in AJAX Lightweight / simple structuresTuesday, February 19, 13
  • 9. That was Then ... JSON for Speed XML for IntegrationTuesday, February 19, 13
  • 10. JSON Validation Structure Instance Document [Well-formed] Semantics Schema [Order, Person]Tuesday, February 19, 13
  • 11. This is Now JSON for Speed JSON for IntegrationTuesday, February 19, 13
  • 12. JSON.orgTuesday, February 19, 13
  • 13. JSON Documents { "thisIs": "My First JSON Doc" }Tuesday, February 19, 13
  • 14. JSON Data Structures Name/Value (or Key/Value) Pairs Objects ArraysTuesday, February 19, 13
  • 15. JSON Key/Value Pair { "firstName": "John" }Tuesday, February 19, 13
  • 16. JSON Object { "address" : { "line1" : "555 Main Street", "city" : "Denver", "stateOrProvince" : "CO", "zipOrPostalCode" : "80202", "country" : "USA" } }Tuesday, February 19, 13
  • 17. JSON Array "clubs" : [ { "number" : 677476, "name" : "Simply Speaking", "city" : "Aurora", "district" : 26 }, { "number" : 999999, "name" : "Wry Toast", "city" : "Denver", "district" : 26 } ]Tuesday, February 19, 13
  • 18. JSON Value TypesTuesday, February 19, 13
  • 19. Numbers "age": 29 "cost": 299.99 "temperature": -10.5 "speed_of_light": 1.23e11 "speed_of_light": 1.23e+11 "speed_of_light": 1.23E11 "speed_of_light": 1.23E+11Tuesday, February 19, 13
  • 20. JSON Boolean { "emailValidated": true }Tuesday, February 19, 13
  • 21. null { "address": { "line1": "555 Main St.", "line2": null, "city": "Bailey", "state": "CO", "postalCode": 80909, "country": "USA" } }Tuesday, February 19, 13
  • 22. JSON Comments NoTuesday, February 19, 13
  • 23. JSON Versions NeverTuesday, February 19, 13
  • 24. A Bigger Sample { "member": { "firstName": "John", "lastName": "Smith", "joined": "2008-12-06", "language": "US English", "reason": "To improve my public speaking skills. To take over the world.", "address": { "line1": "555 Main St.", "city": "Bailey", "state": "CO", "postalCode": 80909, "country": "USA" }, "contact": { "email": "john.smith@acme.com", "homePhone": "303-555-1212", "cellPhone": "720-555-1212", "workPhone": "970-555-1212" }, "club": { "number": 677476, "name": "Simply Speaking", "city": "Aurora", "district": 26 } } }Tuesday, February 19, 13
  • 25. Google JSON Style GuideTuesday, February 19, 13
  • 26. Property Names { "somePropertyIdentifier": "some value" }Tuesday, February 19, 13
  • 27. Date Property Values - RFC 3399 { "dateJoined": "2007-11-06T16:34:41.000Z" }Tuesday, February 19, 13
  • 28. JSON Dominates the Formats!Tuesday, February 19, 13
  • 29. JSON is Hot!Tuesday, February 19, 13
  • 30. Where Are We?Tuesday, February 19, 13
  • 31. JSON Tool RuntimesTuesday, February 19, 13
  • 32. JSON Validators JSON Validator (Mac) http://www.jsonlint.comTuesday, February 19, 13
  • 33. JSONLint.comTuesday, February 19, 13
  • 34. JSON Beautifiers Firefox Chrome JSONView JSONView JSON SHTuesday, February 19, 13
  • 35. JSON Without a BeautifierTuesday, February 19, 13
  • 36. JSONViewTuesday, February 19, 13
  • 37. JSON SHTuesday, February 19, 13
  • 38. JSON Modeling Tools JSON Designer http:// www.jsonschema.net JSONPad Overly - Generate Schema http:// www.jsoneditoronline.org Matic - Generate HTMLTuesday, February 19, 13
  • 39. Model JSON Doc - JSONPadTuesday, February 19, 13
  • 40. Model JSON Doc - jsoneditoronline.orgTuesday, February 19, 13
  • 41. JSON Tutorial - on the iPhoneTuesday, February 19, 13
  • 42. JSON Designer - on the iPhoneTuesday, February 19, 13
  • 43. JSON and HTML5 & JavaScriptTuesday, February 19, 13
  • 44. JSON and HTML5 & JavaScript - AJAX $.getJSON(http://example/service/addresses/home/1, function(data) { var address = JSON.parse(data); console.log("Address Line 1 = " + address.line1); } );Tuesday, February 19, 13
  • 45. JSON and HTML5 Web StorageTuesday, February 19, 13
  • 46. JSON SchemaTuesday, February 19, 13
  • 47. JSON Schema Defines JSON document structure http://json-schema.org/Tuesday, February 19, 13
  • 48. When To Use JSON Schema? When crossing organizational boundariesTuesday, February 19, 13
  • 49. When NOT to use JSON Schema? Get a life - it’s just a website!Tuesday, February 19, 13
  • 50. JSON Schema Constructs Construct Description type The data type – object, array, string, number, etc. required true / false id Data element id Additional validation properties for a data element (e.g., properties minimum, maximum, etc.)Tuesday, February 19, 13
  • 51. JSON Schema Validators JSON Schema Language Source Validator JSV JavaScript https://github.com/garycourt/JSV Ruby JSON Ruby https://github.com/hoxworth/json-schema Schema Validator json-schema- Java https://github.com/fge/json-schema-validator validator php-json-schema PHP https://github.com/hasbridge/php-json-schema (by MIT) JSON.Net .NET http://james.newtonking.com/projects/json-net.aspxTuesday, February 19, 13
  • 52. JSON Schema Example Gift Registry Document & SchemaTuesday, February 19, 13
  • 53. JSON Modeling FlowTuesday, February 19, 13
  • 54. Create JSON Schema - jsonschema.netTuesday, February 19, 13
  • 55. Create JSON Schema - OrderlyTuesday, February 19, 13
  • 56. Validate JSON Document against JSON SchemaTuesday, February 19, 13
  • 57. Generate HTML Document from JSON Schema - MaticTuesday, February 19, 13
  • 58. Where Are We?Tuesday, February 19, 13
  • 59. RESTing with JSONTuesday, February 19, 13
  • 60. Where Are We?Tuesday, February 19, 13
  • 61. Text Search with JSON JSONQuery JSONPath JSONiqTuesday, February 19, 13
  • 62. Our AgendaTuesday, February 19, 13
  • 63. What’s The Point? JSON - much more ...Tuesday, February 19, 13
  • 64. Questions? Tom Marrs Architect thomasamarrs@comcast.net http://www.linkedin.com/in/ TomMarrs Twitter: @TomMarrs Skype: t.marrsTuesday, February 19, 13
  • 65. JSON Resources JSON Spec - http://tools.ietf.org/html/rfc4627 JSON.org - http://www.json.org JSONLint - http://www.jsonlint.com JSON Editor Online - http://jsoneditoronline.org/Tuesday, February 19, 13
  • 66. JSON Resources JSON SH - http://jsonsh.com/ JSON Schema Generator - http://jsonschema.net JSON Schema Validator - http://json-schema-validator.herokuapp.com/ JSON Schema Spec - http://tools.ietf.org/html/draft-zyp-json-schema-03 Google JSON Style Guide - http://google-styleguide.googlecode.com/svn/trunk/ jsoncstyleguide.xmlTuesday, February 19, 13
  • 67. JSON Resources JSONQuery - https://github.com/jcrosby/jsonquery JSONPath - http://goessner.net/articles/JsonPath/ JSONiq - http://www.jsoniq.org/ JSONT - http://goessner.net/articles/jsont/Tuesday, February 19, 13
  • 68. JSON Groups Google - http://groups.google.com/group/json-schema Yahoo! - http://tech.groups.yahoo.com/group/json/Tuesday, February 19, 13