RPG Next Gen
Wiki RSS Feed Bug Reporting Weblog
Business picture

JSON Utilities

JSON Generator

The main module can be used to create JSON strings. First a JSON object is created. Then the various put and get procedures can be used to fill or query the object for its content. With the toString procedure the JSON string is generated from the object.

The generator supports arrays and objects in unlimited depths. The only limit is the memory the job is allowed to allocate.

Example

// create json object jsonObj = json_create(); // fill json object json_putBoolean(jsonObj : 'Error' : *on); json_putInt(jsonObj : 'ErrorId' : 358); json_putString(jsonObj : 'ErrorDesc' : 'My custom error message.'); json_putString(jsonObj : 'ErrorTime' : %char(%time : *HMS:)); // generate json string jsonString = %str(json_toString(jsonObj)); // dispose json objet => free allocated memory json_dispose(jsonObj);

Donations

Collab Sites

Dieter Bender DV
Thomas Raddatz
ILEDocs
iDevCloud
YiPs

Projects


rss feed Latest News

  • 2012-10-05 - JT400 Javadocs
  • 2012-08-24 - JSON service program release 1.4.5
  • 2012-07-28 - JSON service program release 1.4.4
  • 2012-07-24 - JSON service program release 1.4.3
  • 2012-02-10 - missing RUNUNITEST program uploaded
  • 2011-10-23 - JSON service program release 1.4.2
  • 2011-09-13 - JSON service program release 1.4.1
  • 2011-08-27 - New Modular project
  • 2011-07-24 - JSON service program release 1.4.0
  • 2011-06-05 - New Stomp Client project and release 1.0.0
  • 2011-06-05 - Includes update to 1.2.0
  • 2011-05-09 - zlib port for IBM i
  • 2011-05-09 - New Properties project and release 1.0.0
  • 2011-05-03 - Includes updates
  • 2011-05-03 - libtree release 1.1.0
  • 2011-04-30 - JSON service program release 1.3.1
  • 2011-04-29 - Vector changed to ArrayList with a new release
  • 2011-02-23 - Linked List service program release 1.3.0
  • 2011-02-18 - Red Black Tree implementation docs
  • 2011-02-14 - JSON service program release 1.3.0
  • 2011-02-13 - RNG Input Provider release 1.1.1
  • 2011-02-11 - libtree release 1.0.0
  • 2011-02-05 - New Validator Service Program available
  • 2011-01-30 - New Flat File Parser project
  • 2011-01-15 - RNG Input Provider example added
  • 2011-01-10 - RNG Input Provider release 1.1.0
  • 2011-01-08 - RPG Next Gen Editor update site updated
  • 2011-01-03 - CCSID conversion script updated
  • 2010-12-30 - New project Input Providers
  • 2010-12-27 - CCSID conversion script in section resources
  • 2010-12-12 - RPG Next Gen Editor release 0.5.5
  • 2010-12-12 - RPG Unit Test release
  • 2010-10-02 - New project Unit Testing for RPG

Last updated

2013-06-19