sponsored links

Collapse

Announcement

Collapse
No announcement yet.

Generating JSON in RPGLE using YAJL

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Generating JSON in RPGLE using YAJL

    Hi All,

    I have a scenario where I read a record and write(append) it as JSON using Scott's YAJL. I am doing this in a loop.

    Now, suppose I get an error at Nth record and I just want to send the error details.

    To do that I have to erase all the data in the memory and just write the error details.

    I have been successful in erasing all the data from memory using "yajl_genClose()". And then I start again with "yajl_genOpen(*ON)" to write error details.

    Is this the right approach?

    Thanks,
    AS_Developer



  • #2
    Sounds reasonable.

    Comment

    sponsored links

    Collapse

    Working...
    X