Data-Into loses embedded blanks
Posted: Mon Sep 26, 2022 10:17 pm
I have a JSON element that will contain some Y/N flags, but there can be embedded blanks in the string.
"Flags": "YNNYN Y"
My data structure allows a string of up to 40 characters:
DS
Flags char(40);
My issue is that after the Data-Into the value in Flags is this:
Flags = 'YNNYN Y '
It has compressed all the extra spaces and only leaves one.
I've done other tests and the results are similar.
"Flags": "A B C D"
after the Data-Into
Flags = 'A B C D '
I did try using the yajl_object_find and yajl_get_string and it retains the exact same string from the JSON (no compression).
Has anyone else run into this behavior? I thought everything inside the double quotes would be preserved exactly as it was presented in the JSON.
"Flags": "YNNYN Y"
My data structure allows a string of up to 40 characters:
DS
Flags char(40);
My issue is that after the Data-Into the value in Flags is this:
Flags = 'YNNYN Y '
It has compressed all the extra spaces and only leaves one.
I've done other tests and the results are similar.
"Flags": "A B C D"
after the Data-Into
Flags = 'A B C D '
I did try using the yajl_object_find and yajl_get_string and it retains the exact same string from the JSON (no compression).
Has anyone else run into this behavior? I thought everything inside the double quotes would be preserved exactly as it was presented in the JSON.