• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • What JSON on IBM i Can Do For You

    October 14, 2015 Alex Woodie

    One of the most compelling new features that IBM added to the DB2 for i database in recent memory is support for JavaScript Object Notation (JSON), which has become the de facto standard interchange format for Web data. John Eberhard, a software engineer in IBM’s Rochester lab, recently led IT Jungle through some of the major capabilities that the new JSON data store can provide to all you IBM i shops out there.

    IBM shipped a technology preview of the new JSON store earlier this year with updates to IBM i 7.1 and 7.2. Unfortunately, the JSON store did not move up to become a fully supported feature in the most recent Technology Refreshes unveiled by IBM last week, so native JSON support in DB2 for i will remain on the cutting edge for now. In any case, it’s clear that JSON is on the minds of IBM’s database developers, and therefore it should be on your radar too.

    Eberhard, who wrote a developerWorks article called IBM DB2 for i: JSON Store Technology Preview (pdf), says one of the biggest advantages of using JSON in DB2 for i is the ability to share data across multiple systems.

    You can easily identify JSON code by the curly brackets.

    “The primary motivation for using JSON was described in the [2013 developerWorks article] DB2 JSON capabilities, Part 1: Introduction to DB2 JSON,” he tells IT Jungle. “In particular, the use of the JSON store will be most useful in applications where JSON is being used as the transport technology between different systems. The most common case is that of a Web application, where a JavaScript program running in a browser that communicates with a Web server. In this environment, JSON has an additional advantage over other techniques because JSON is easily processed by JavaScript.”

    Many IBM i developers are beginning to use JavaScript as a front-end scripting language for developing Web and mobile interfaces. While the backend business logic for these apps remain in RPG, Java, PHP, or other language, the front-end is typically written in JavaScript, and quite often the data format it will use is JSON. The developer doesn’t have to use JSON with JavaScript, but there are many advantages to doing it this way–including the fact that you can now store JSON on DB2 for i.

    Eberhard foresees the best use of the JSON store as a way to easily and efficiently interact with a JavaScript on a browser. “In this model, a Web application would be based mostly in JavaScript running on the browser,” he writes via email. “The JavaScript would generate and manipulate JSON that is exchanged with the server. On the server, the JSON API can be used to not only store and retrieve the document, but to interact with the JSON objects directly.”

    As Eberhard mentioned, IBM is exposing an API that allows developers to access and manipulate the JSON data stored in the DB2 for i database. That is one way to work with JSON in DB2 for i–the other two being a command line interface for manipulating JSON directly, and a user defined function (UDF) that can be called. (Many third-party software vendors are also supporting JSON in their own ways.)

    “For the developer, the most important function is the JSON API, which allows Java servlet-based applications to easily produce and process JSON that is exchanged with Web browser applications,” Eberhard says. Since DB2 for i has support for Java procedures and functions, the JSON API can be called by any other IBM i language that speaks SQL, including RPG, PHP, and COBOL.

    The extensibility of JSON is a clear win for developers looking to build modern Web and mobile applications atop the IBM i platform. Developers who are familiar with other NoSQL databases that use JSON data formats–such as Couchbase and MongoDB (the DB2 JSON store actually implements parts of MongoDB’s open source BSON query engine)–should feel at home working with JSON/BSON documents stored on DB2 for i.

    But this being IBM–which protects the backward compatibility of its customer’s IT investments stretching back into the decades–you can bet that the JSON DB2 store brings a little something for the operators and administrators tasked with actually running the stuff, too.

    “For the business, the DB2 JSON Store allows clients to leverage their investments in DR and HA [disaster recovery and high availability] infrastructure to improve their data availability posture,” Eberhard says. “This point resonates with our clients because we’re bridging between two important business requirements: developer productivity and reliability of service.”

    In many ways, the adventure into JSON technology parallels the adventures IBM i shops have taken with XML, which started becoming a big thing around the turn of the century.

    “Much like what you saw happen with XML, DB2 for i customers will benefit from having JSON-specific features built into the database,” Eberhard says. “As mentioned earlier, clients can rely upon their considerable investment in DR/HA on IBM i. Even though the JSON collections (documents) are not a column in your favorite table, the data resides in DB2 for i, where you can count on it being there when you need it.”

    The JSON data store is an important first step in getting JSON data on the IBM i platform. It also brings clear advantages for IBM i shops looking to develop and use modern Web and mobile applications in the manner that has become an industry standard.

    While traditional relational database technology and SQL-based access methods will continue to power many of the internal processes that IBM i servers run on a daily basis, the query and storage methods used to serve data to Web and mobile user interfaces is clearly shifting toward document-oriented designs, with JSON leading the way.

    RELATED STORIES

    Top Five New Technologies On IBM i

    Using JSON and RPG To Create Interactive Web 2.0 Applications

    Meet JSON

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    VISUAL LANSA 16 WEBINAR

    Trying to balance stability and agility in your IBM i environment?

    Join this webinar and explore Visual LANSA 16 – our enhanced professional low-code platform designed to help organizations running on IBM i evolve seamlessly for what’s next.

    🎙️VISUAL LANSA 16 WEBINAR

    Break Monolithic IBM i Applications and Unlock New Value

    Explore modernization without rewriting. Decouple monolithic applications and extend their value through integration with modern services, web frameworks, and cloud technologies.

    🗓️ July 10, 2025

    ⏰ 9 AM – 10 AM CDT (4 PM to 5 PM CEST)

    See the webinar schedule in your time zone

    Register to join the webinar now

    What to Expect

    • Get to know Visual LANSA 16, its core features, latest enhancements, and use cases
    • Understand how you can transition to a MACH-aligned architecture to enable faster innovation
    • Discover native REST APIs, WebView2 support, cloud-ready Azure licensing, and more to help transform and scale your IBM i applications

    Read more about V16 here.

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Connectria:  Need help managing your IBM i? Trust us as an extension of your IT department.
    HelpSystems:  How do you use IBM i? Your peers want to know! Take the survey >
    System i Developer:  Session Grid Posted: RPG & DB2 Summit - Chicago, October 20-22

    IBM Mothballs The Last Of The Power7+ Servers A Different View Of IBM i And PASE

    Leave a Reply Cancel reply

Volume 25, Number 51 -- October 14, 2015
THIS ISSUE SPONSORED BY:

BCD Software
Fresche Legacy
Rocket Software
United Computer Group, Inc.
Connectria

Table of Contents

  • GCC: Bringing More Open Source Software to IBM i
  • What JSON on IBM i Can Do For You
  • RPG, XML, SOAP, and REST: Web Services for IBM i
  • Taming SQL Queries with a CozTool
  • LANSA Delivers LongRange Support for Windows 10 . . . Got Mobile Server Monitoring? iEye, Captain . . . Shield Goes ASP with JQG4i

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • With Power11, Power Systems “Go To Eleven”
  • With Subscription Price, IBM i P20 And P30 Tiers Get Bigger Bundles
  • Izzi Buys CNX, Eyes Valence Port To System Z
  • IBM i Shops “Attacking” Security Concerns, Study Shows
  • IBM i PTF Guide, Volume 27, Number 26
  • Liam Allan Shares What’s Coming Next With Code For IBM i
  • From Stable To Scalable: Visual LANSA 16 Powers IBM i Growth – Launching July 8
  • VS Code Will Be The Heart Of The Modern IBM i Platform
  • The AS/400: A 37-Year-Old Dog That Loves To Learn New Tricks
  • IBM i PTF Guide, Volume 27, Number 25

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle