• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Data Intechange at Work: XML and JSON

on

  • 2,859 views

 

Statistics

Views

Total Views
2,859
Views on SlideShare
2,852
Embed Views
7

Actions

Likes
2
Downloads
0
Comments
0

2 Embeds 7

http://www.linkedin.com 6
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Data Intechange at Work: XML and JSON Data Intechange at Work: XML and JSON Presentation Transcript

    • Data Interchange Formats at Work
      XML and JSON
      Tom Marrs
      Architect
    • Your Profile
      Is XML dead?
      XML and JSON – together?
      What?
      Why?
      Not?
      How?
    • What’s The Point?
      XML is not dead
      Use XML for integration
      Use JSON for speed
    • Today’s Agenda
    • We’re Not Covering
      SOA
      REST vs SOAP
      Web 2.0
      XML Schema Design
    • Older Formats
      Delimited
      Positional
    • Delimited Data
      John|Smith|2008-12-06|To improve my public skills. To get promoted. To take over the world (or a small portion thereof).|555 Main St.|Bailey|CO|80909|USA|john.smith@acme.com|303-555-1212|720-555-1212|970-555-1212|677476|Simply Speaking|Aurora|26
    • Positional Data
      John Smith 2008-12-06…
      First Name: 0 - 20
      Last Name: 21 – 50
      Date Joined: 51 - 60

    • Older Formats Are Dead – Right?
      NO!
      EDI/X12 ANSI
    • Older Formats
      No meta-data
      Proprietary parsing/formatting
      Programmatic validation
    • XML Overview
      W3C Standard - 1996
      Publishing  Messaging
      XML-based Languages
    • XML
    • ToastML – Iteration 1
    • ToastML – Iteration 2
    • ToastML – Iteration 2 - Schema
    • ToastML – Iteration 2 - Schema
    • ToastML – Iteration 3
    • ToastML – Iteration 3 - Schema
    • XML Elements vs. Attributes
      It’s an Element When …
      First Class Data – <Member>
      Hierarchical / Whole-To-Part
      Order Matters
      Long Data / Whitespace - <Reason>
      It’s an Attribute When …
      Dependent Data / Meta-Data
      No further structuring
      firstName
      lastName
      Depends on Business Domain
    • ToastML – Iteration 4
    • ToastML – Iteration 4 - Schema
    • XML Patterns
      http://www.xmlpatterns.com
      Domain Element
      Extensible Content Model
      Russian Doll / Venetian Blind / Salami Slice
      Canonical Schema – SOA Design Patterns
    • XML Surround Sound
      XPath
      XSLT
    • My Journey in Java XML Binding
    • JAXB Annotations
    • JAXB Marshalling/Unmarshalling
    • My JAXBUtil
    • XML Beans Marshalling/Unmarshalling
    • Apache CXF
    • XML in Ruby - REXML
    • XML in Ruby on Rails
    • XML in JavaScript (jQuery)
    • !XML
      Web 2.0 / AJAX
      Slick User Experience
    • XML Wrap Up
      Semantics / Meaning
      Interoperability
    • JSON Overview
      JavaScript
      www.json.org
      2006 - IETF - RFC 4627
      The “x” in AJAX
      Lightweight / simple structures
    • JSON
    • JSON Structures
      Object
      Array
      List of Values
      Name / Value Pairs
    • Toast.JSON – Iteration 1
    • Recall - ToastML – Iteration 1
    • Toast.JSON – Iteration 4
    • Recall - ToastML – Iteration 4
    • Toast.JSON – Iteration 4 – Multiple Members
    • JSON Schema?
      http://json-schema.org
      March 2010 – IETC – RFC ?
      Not Quite Ready
    • JSON in Java - SOJO
    • JSON in Java – Apache CXF
    • JSON in Ruby on Rails
    • JSON in JavaScript (jQuery)
    • Cross-Domain JSON - The Problem
      Same-origin policy
      AJAX XmlHttpRequest
      Browser Security Constraint
    • JSONP (JSON with Padding) and jQuery – The Solution
    • !JSON
      Enterprise-class Integration
      Waiting for JSON Schema
    • JSON Wrap Up
      Concise
      Fast
    • What’s The Point?
      XML is not dead
      Use XML for integration
      Use JSON for speed
    • Questions?
      Tom Marrs
      Architect
      thomasamarrs@comcast.net