RPG Next Gen
Wiki RSS Feed Bug Reporting
Business picture

JSON Utilities

What is JSON? JSON is a way of passing data between application independent of the underlying programming language or platform.

But you probably should have a look at the JSON site and then come back.

JSON Service program

The provided service program allows the creation, parsing and checking of JSON strings through a number of procedures. See the examples section for an example on how to create a JSON string.

Most things like arrays, objects and null values are supported by this service program.

The service program consists of multiple modules:

JSON and Java

Java has many ways of dealing with JSON strings and most are accomplished very easy.

So, if Java can read JSON strings very easy and RPG can write JSON strings very easy then this makes a good combination for data exchange between RPG and Java.

Missing numeric (zoned / packed) data type

For those who have to pass some numeric values which don't fit into the primitive data types int, long and double there is also the JTOpen project with a lot of Java classes which can help in data exchange between Java and RPG. The biggest handicap is that Java does not have data structures like RPG (which makes it easy to pass multiple values in one parameter) and the ProgrammCall class of the toolbox only accepts 7 parameters (due to some API limitations).

Record Format Markup Language

But there jumps RFML into the arena. RFML is a markup language to define record formats. These record formats can be filled with the content (bytes) of a ProgramCall parameter and then be used in the same way as an RPG data structure.

RFML is quite universal as it can be used with

  • ProgramCall parameters
  • Userspaces
  • Data Queues
  • Data Areas
  • Database Files

Limitations

Arrays are supported with "unlimited" cascading depth. The only limit is the memory available for the job.

Requirements

The service program LLIST is needed for this service program.

Documentation

API documentation of the JSON service programs can be downloaded in HTML format.

Download

The source code of the service program can be found in the download section.

The source code to some examples can be found in the examples section.

Donations

Collab Sites

Dieter Bender DV
ILEDocs

Projects


rss feed Latest News

  • 2010-07-06 - RPG Next GEn Editor release 0.5.4
  • 2010-06-06 - STDLIB replacement functions - mkstemp
  • 2010-05-24 - RPG Next Gen Editor Dev Snapshot 0.5.3.99
  • 2010-04-02 - RPG Next Gen Editor release 0.5.3
  • 2010-01-28 - JSON service program release 1.2.2
  • 2010-01-05 - First Linked Map release 1.0.0
  • 2009-12-15 - Linked List API Documentation at Sourceforge.net
  • 2009-12-15 - Linked List release 1.2.0
  • 2009-08-27 - RPG Next Gen Editor update site 0.5.1
  • 2009-08-13 - RPG Next Gen Editor release 0.5.1
  • 2009-07-17 - Package Management for System i - concept draft
  • 2009-06-15 - New RPG Next Gen Editor video tutorial - Offline projects
  • 2009-06-04 - RPG Next Gen Editor update site available again
  • 2009-06-01 - RPG Next Gen update site NOT working
  • 2009-05-31 - RPG Next Gen Editor release 0.5.0
  • 2009-05-26 - ILEDocs java client released
  • 2009-05-26 - More documentation available
  • 2009-05-22 - Wiki online
  • 2009-05-01 - ILEDocs released

Last updated

2010-07-06