cxflag203 / superobject

Automatically exported from code.google.com/p/superobject
0 stars 0 forks source link

pseudo namespace affects output order #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Delphi 2010
SOT, superobject.pas SVN Rev 20

Issue: Order in 2nd test below is changed

--- 1 - OK

    str := '{"w":"World","h":["Hello"]}';
    resp := SO(str);
    str := resp.AsJSon();

    str => {"w":"World","h":["Hello"]}

--- 2 - FAIL

    str := '{"ns:w":"World",h:["Hello"]}';
    resp := SO(str);
    str := resp.AsJSon();

    str => {"h":["Hello"],"ns:w":"World"}

--- 3 - OK

    str := '{"ns:w":"World","ns:h":["Hello"]}';
    resp := SO(str);
    str := resp.AsJSon();

    str => {"ns:w":"World","ns:h":["Hello"]}

Original issue reported on code.google.com by willi...@codics.com on 8 Mar 2010 at 1:44