Search found 5 matches

by mike_faust
Thu Mar 30, 2023 2:55 pm
Forum: YAJL-ILE
Topic: YAJLINTO with object array throwing reason code 9 error
Replies: 12
Views: 71122

Re: YAJLINTO with object array throwing reason code 9 error

In my case I need the null to not get loaded into the database as *NULL and I'm dealing with an extremely complex JSON doc so I need it to not load the nulls at all. You're correct though the real issue appears to be with the skip_nulls option itself when the last element in a structure that is part...
by mike_faust
Thu Mar 30, 2023 2:03 pm
Forum: YAJL-ILE
Topic: YAJLINTO with object array throwing reason code 9 error
Replies: 12
Views: 71122

Re: YAJLINTO with object array throwing reason code 9 error

Absolutely. Here's a sample of the JSON that will cause the issue. Sample JSON Doc { "documents": { "test_doc1": [ { "element1": "value1", "element2": "value2" } ], "test_doc2": [ { "element1": "value3", "...
by mike_faust
Wed Mar 29, 2023 9:27 pm
Forum: YAJL-ILE
Topic: YAJLINTO with object array throwing reason code 9 error
Replies: 12
Views: 71122

Re: YAJLINTO with object array throwing reason code 9 error

One quick update on this. I realized that the issue only occurs if the last element in the first array occurrence contains a null value. I was using the "skip_nulls" option to avoid issues with null values but removing that and replacing it with "value_null": "" to repl...
by mike_faust
Wed Mar 29, 2023 6:30 pm
Forum: YAJL-ILE
Topic: YAJLINTO with object array throwing reason code 9 error
Replies: 12
Views: 71122

Re: YAJLINTO with object array throwing reason code 9 error

Thanks for the response. The JSON doc I used along with the RPG Data Strucure are both just examples so the format may be wrong, however the actual doc (which I can't easily share because it contains proprietary information and PII) are properly formatted JSON. What has me confused is I only see the...
by mike_faust
Wed Mar 29, 2023 12:44 pm
Forum: YAJL-ILE
Topic: YAJLINTO with object array throwing reason code 9 error
Replies: 12
Views: 71122

YAJLINTO with object array throwing reason code 9 error

I have an application that accepts documents that contain JSON arrays, which are in turn loaded into data structure arrays. The application works fine as long as the JSON array only contains a single element but when it has more than one element DATA-INTO using YAJLINTO throws "The information ...