Data-into with YAJLINTO. You can use %parser's 2nd parameter to specify various options like override values for true/false.
One of those is an override value for null, which is giving me trouble, because it's one value regardless of the data type of the RPG field receiving the value.
So if my DS is this:
The only null value compatible with both is 0? But I want my null strings to be blank, not '0'
So what are my options? Is there a way of defining separate string, numeric, and date/time/timestamp null values?
Or do I have to set all my DS fields to character, and then convert them in RPGLE to numeric/date/time/timestamp?
One of those is an override value for null, which is giving me trouble, because it's one value regardless of the data type of the RPG field receiving the value.
So if my DS is this:
Code:
dcl-s myjson qualified; myStr varchar(10); myNum int(10); end-ds;
So what are my options? Is there a way of defining separate string, numeric, and date/time/timestamp null values?
Or do I have to set all my DS fields to character, and then convert them in RPGLE to numeric/date/time/timestamp?
Comment