I am trying to use the DATA-INTO to parse a JSON String with the QOAR/JSONPARSE parser. The JSON has some empty strings like "DESCRIPTION":"". The parser seems to be blowing up on the empty string. Is there anyway to allow this?
JonParis 1200007C6K345 Posts
Re: DATA-INTO empty string handling2019-07-21T17:16:02ZThis is the accepted answer. This is the accepted answer.
Remember that the IBM supplied parsers are intended as _examples_ and not intended for production use. You have the source code and can modify it to meet your requirements.
However, there are known restrictions with this parser in addition to the one you have discovered. I suggest that you download Scott Klement's YAJL port which will give you a much more robust DATA-INTO parser as well as the YAJL toolkit for consuming and generating JSON. Get it from here: http://www.scottklement.com/yajl/Updated on 2019-07-21T17:16:39Z at 2019-07-21T17:16:39Z by JonParis