You are not logged in.
Pages: 1
Hi ab,
Very happy with new record <-> json functionality.
Trying to DynArrayLoadJSON valid JSON string I get wrong/no result.
Figured out, that if I delete all #13 #10 #9 chars from source json string everything goes correct.
It is in case where I have array of record inside array of record.
Offline
Forgot to mention, it happens when soReadIgnoreUnknownFields is set and not all property names are defined in the descriptor constant string.
Maybe this will lead you to some ideas.
Will email example tomorrow.
Thanks.
Offline
Trying with:
Parser.Options := [soReadIgnoreUnknownFields];
U := '{ "A" : 1 , "B" : 2 , "C" : 3 , "D" : "A" , "tobeignored":null,"E": '#13#10+
'{ "E1" : 4, "E2" : 5 } , "tbi" : { "b" : 0 } }';
RecordLoadJSON(JR2,@U[1],TypeInfo(TTestCustomJSONRecord));
I was able to reproduce the issue.
Should be fixed by http://synopse.info/fossil/info/0f8cd9c9a0
Thanks for the feedback!
Online
Thanks ab,
Yes, source json looks like the one you typed, with many spaces and #10 #13.
Will test it tomorrow over my source json and let you know results.
Thanks once again.
Offline
I confirm the fix works in my case thanks
Offline
Pages: 1