Native z/OS JSON Parsing and HTTP Services - SHARE

[Pages:55]Native z/OS JSON Parsing and HTTP Services

Steve Warren IBM

email: swarren@us. : @StevieWarr2

August 11, 2015 Session 17791

?Copyright IBM Corporation 2015

Trademarks

The following are trademarks of the International Business Machines Corporation in the United States, other countries, or both.

Not all common law marks used by IBM are listed on this page. Failure of a mark to appear does not mean that IBM does not use the mark nor does it mean that the product is not actively marketed or is not significant within its relevant market. Those trademarks followed by ? are registered trademarks of IBM in the United States; all others are trademarks or common law marks of IBM in the United States.

For a complete list of IBM Trademarks, see legal/copytrade.shtml:

*, AS/400?, e business(logo)?, DBE, ESCO, eServer, FICON, IBM?, IBM (logo)?, iSeries?, MVS, OS/390?, pSeries?, RS/6000?, S/30, VM/ESA?, VSE/ESA, WebSphere?, xSeries?, z/OS?, zSeries?, z/VM?, System i, System i5, System p, System p5, System x, System z, System z9?, BladeCenter?

The following are trademarks or registered trademarks of other companies.

Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. BMC Mainview AutoOPERATOR is a trademark of the BMC Software Corporation CA Ops/MVS is a trademark of the CA Technlogies corporation. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. UNIX is a registered trademark of The Open Group in the United States and other countries. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. ITIL is a registered trademark, and a registered community trademark of the Office of Government Commerce, and is registered in the U.S. Patent and Trademark Office. IT Infrastructure Library is a registered trademark of the Central Computer and Telecommunications Agency, which is now part of the Office of Government Commerce. zCostManagement is a trademark of the zCostManagement Corporation. zPrice Manager is a trademark of the zIT Consulting Corporation

* All other products may be trademarks or registered trademarks of their respective companies. Notes: Performance is in Internal Throughput Rate (ITR) ratio based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput improvements equivalent to the performance ratios stated here. IBM hardware products are manufactured from new parts, or new and serviceable used parts. Regardless, our warranty terms apply. All customer examples cited or described in this presentation are presented as illustrations of the manner in which some customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics will vary depending on individual customer configurations and conditions. This publication was produced in the United States. IBM may not offer the products, services or features discussed in this document in other countries, and the information may be subject to change without notice. Consult your local IBM business contact for information on the product or services available in your area. All statements regarding IBM's future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only. Information about non-IBM products is obtained from the manufacturers of those products or their published announcements. IBM has not tested those products and cannot confirm the performance, compatibility, or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. Prices subject to change without notice. Contact your IBM representative or Business Partner for the most current pricing in your geography.

2

?Copyright IBM Corporation 2015

Agenda

? Web applications (quick overview)

? What and why of JSON? ? What is REST? ? What is missing on z/OS?

? Introduction to the toolkit ? z/OS JSON Parser details

? Usage

? z/OS HTTP/HTTPS protocol enabler details

? Usage ? Problem determination

? Reference material

3

?Copyright IBM Corporation 2015

Web applications (JSON, HTTP and REST)

4

?Copyright IBM Corporation 2015

Moving Beyond the Browser

Businesses Are Evolving

stores

(800) ###s

web sites

Web APIs are the new, fast-growing business channel

Not having an API today is like not having a Web Site in the 90s

""$$77bbn nwowrthorotfhiteomfsioten meBsayothnroeugBhaAyPItsh"rough APIs"

MMaarkrkCaCrgaersg(eEsba(yECbTaOy) CTO)

The API which has easily 10 times more traffic then the website, has been really very important to us."

Biz Stone (Co-founder, Twitter)

""TThheeaaddopotpiotnioonf Aomf Aazmoan'zsoWn'esbWseervbicsees risviccuersreinstlycurrently driving more network darcivtiinvgitymtohreenneetwveorrkytahcitnivgityAtmheanzeovnerdytoheinsg tAhmroauzgonh their traditional web sites."

dJeofef sBathr r(oAumgahzothneeirvatrnagdeiltiisot)na/ Dl wioenbHsinitcehsc.l"iffe (Journalist)

Jeff Bar (Amazon evangelist) / Dion Hinchcliffe (Journalist)

Web 1994 was the "get me a domain and a page" era. Web 2000 was the "make my page(s) interactive and put people on it" era. Web 2010 is the "get rid of pages and glue APIs and people together" era.

Robert Scoble (Author of tech blog Scobleizer)

5

?Copyright IBM Corporation 2015

Growth in Publically Published Web APIs

16000 14000 12000 10000

8000 6000 4000 2000

1 0

Public WebAPIs Available

13860 12534

10302 8226

5018

WebAPIs

2418 299 593 865 1546

2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

Source: Programmable Web (some intermediate numbers extrapolated)

6

?Copyright IBM Corporation 2015

JSON : The Exchange Notation For Mobile Devices

JSON Sample {"name" : "Adele", "breed": "Poodle", "dob": 2011-05-01}

Client JavaScript

Web API

Protocol HTTP (REST)

JSON JSON

JSON

JSON standardized as part of ECMAScript in December 1999 JSON has reached all tiers

Middle Tier

Relational Store

XML /JSON Store / Persistence layer

? With the increased popularity of Web APIs (literally thousands of Web APIs) and the use of Mobile Devices

? User Interfaces usually have a JavaScript component

? JSON is the data structure for JavaScript

? JSON is integrated with JavaScript and Java and other languages (through libraries)

? The JSON trend is developer driven and is reaching all tiers (UI, Middle Tier, Data Tier)

Aspects of JSON:

No namespaces

No schemas

No mixed content support Mixed content example: hello Adelehow are you

7

?Copyright IBM Corporation 2015

JSON Penetration: Web API Trend Towards JSON

Programmable Web, Jan 2012

26 Weather APIs, 12 Support JSON

"Weather has always been a popular category with 26 Weather APIs listed in our directory. While XML is still the leading data format used, the trend of JSON becoming the Developer's Choice over the last few years is also reflected in the Weather category"

Programmable Web, December 2012

1 in 5 APIs said "Bye XML" - JSON is popular, at least when it comes to API data formats. Of the new APIs we added to our directory, one in four supports only JSON (Dec 2012). YouTube API, for example, switched to JSON-only

Programmable Web, January 2012

Library of Congress, Prints and Photos API goes JSON - The Library of Congress, with their Prints and Photographs API has finally taken the REST API plunge. If this government institution can do it, maybe you can convince the head of your IT department that APIs are a good idea too.

8

?Copyright IBM Corporation 2015

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download