Loading…
Attending this event?

Common Europe, in collaboration with FAQ400 (Italy), is delighted to be holding its annual flagship event, Common Europe Congress, in the fashionable city of Milan offering extensive education, networking and relaxation opportunities. It’s also a great opportunity for exploring the city… so why not take a family mini-break as well.

Congress education areas targeted are IBM Power hardware, Application Development, Advanced RPG, Open Source tools and Languages, System Management, Db2 and SQL,  IBM Storage, IBM i services and microservices, Security and Compliance and much more.

There will be two AIX / Linux tracks, to emphasize the Power Systems character of Common Europe.
Top IBM Business Architects and industry experts have already agreed to share their knowledge on the latest announcements, customer cases as well as practical subjects.

REGISTRATION CAN BE FOUND HERE

Wednesday, June 5 • 12:00 - 13:00
Fun with JSON Publishing: Letting SQL Do the Dirty Work

Log in to save this to your schedule, view media, leave feedback and see who's attending!

If you've ever been tasked as a developer with creating complex responses for an internal or external web service, you've likely explored multiple avenues for generating JSON from your IBM i programs. From constructing responses manually in your RPG code, to using various publicly available toolkits like YAJL, RPG NextGen, etc., there are a myriad of ways to create JSON strings with all the requisite curlies, commas, colons, quotes and hard brackets. If you're on IBM i OS 7.2 or higher, there's yet another avenue you can explore in which you let SQL do the JSON construction work for you. The biggest benefit of this approach becomes most apparent when your JSON response requires arrays, and especially nested subarrays. Coding such responses can be a bit tedious when done on a record-by-record basis in your program, whereas by using some nifty functions you can can let SQL assemble your JSON response automatically. In this session we'll review the basics of JSON publishing functions such as JSON_Object, JSON_Array, JSON_ObjectAgg and JSON_ArrayAgg. We'll explore some practical use examples for publishing your business data in JSON, letting SQL do all the dirty work. Learning Objectives: 1. Learn the syntax of the most commonly used SQL JSON publishing functions 2. Understand the differences between a standard SQL select statement and an SQL statement constructing a JSON response 3. See how to integrate these SQL functions into an RPG program

Speakers
avatar for Robert Swanson

Robert Swanson

Senior Partner, CNX Corporation
Rob has worked as an in-the-trenches IBM i developer since 1992, with the past 15 years focused on developing modernization efforts for legacy systems written in RPG. Currently serving as Senior Partner for CNX Corporation in Chicago, Rob is a strong advocate of introducing highly... Read More →


Wednesday June 5, 2024 12:00 - 13:00 CEST
Europa A
Feedback form isn't open yet.

Attendees (8)