Bug #9187
Multiple issues with read-json
0%
History
#1 Updated by Andrei Plugaru almost 2 years ago
- File 9187_error.p
added - File 9187_hierarchy.p
added
While investigating another task, I found out there are multiple differences between OE and FWD behaviour regarding read-json for datasets.
I think that the root cause for some issues may be that the hierarchy is not preserved when reading form JsonObject. 9187_hierarchy.p test tries to show this issue.
FWD output: before {"Parent":[{"parentField":"AAA","ttChild1":[{"childField":"BBB"}],"ttChild2":[{"childField":"CCC"}]}]}
after {"Parent":[{"parentField":"AAA"}]}
OE output: before {"Parent":[{"parentField":"AAA","ttChild1":[{"id":43264,"childField":"BBB"}],"ttChild2":[{"id":43264,"childField":"CCC"}]}]}
after {"Parent":[{"parentField":"AAA","ttChild1":[{"id":43264,"childField":"BBB"}],"ttChild2":[{"id":43264,"childField":"CCC"}]}]}
Another issue, which actually could only be a consequence of the first one, is that if the buffer name exists in the dataset(no mater the current position in the hierarchy) it doesn't throw any error. In OE this error is thrown Error parsing JSON: unexpected token: string. (15360). 9187_error.p shows this issue.