Good Day,
So we have a json field being passed as:
"workord_number" : null
This is what I see in the json file as text.
In my RPGLE program it is written as:
node = yajl_object_find( docNode: 'workord_number' );
If Node <> *Null;
dshdr.workord_number = yajl_get_string(node);
endif;
The above JSON does not return *Null, it is determined as NOT *NULL and processed as blank.
Is there anything else in the object capture we should be doing to see it as *Null?
If the workord_number is not present in the passed JSON string then it comes in as *Null
Thnx
Bill
So we have a json field being passed as:
"workord_number" : null
This is what I see in the json file as text.
In my RPGLE program it is written as:
node = yajl_object_find( docNode: 'workord_number' );
If Node <> *Null;
dshdr.workord_number = yajl_get_string(node);
endif;
The above JSON does not return *Null, it is determined as NOT *NULL and processed as blank.
Is there anything else in the object capture we should be doing to see it as *Null?
If the workord_number is not present in the passed JSON string then it comes in as *Null
Thnx
Bill
Comment