=To answer the questions:
=C2=A0 =C2=A0 =E2=80=A2 Will the code work for nested arrays?
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Yes, it will flatten the array and save it in t=he database with the full path name for each node.
=C2=A0 =C2=A0 =E2=80=A2 Will it allow for JSON that has colons - or any cha=racter - in the node names?
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Everything should be fine except tabs/linefeeds=/etc.
Using that example (adding double quotes around duration to make the JSON v=alid), it would be saved in the database with the following column names=3D=values
list:0:points.bean.pointsBase:0:time=3D2000
list:0:points.bean.pointsBase:0:caption=3Dcaption text
list:0:points.bean.pointsBase:0:duration=3D5000
list:0:points.bean.pointsBase:1:time=3D6000
list:0:points.bean.pointsBase:1:caption=3Dcaption text
list:0:points.bean.pointsBase:1:duration=3D3000
The improved JSON parsing would take care of the bugs on the test suite pag=e. The unwanted whitespace would be fixed, and I believe the escaped quotes= would be handled correctly too.
What would we call this? The behavior will be quite different than the orig=inal [JSONSTORE] : should we name it something else like [JSONSTOREPLUS], o=r replace the original?
- chris---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list talk@w=ebdna.us
To unsubscribe, E-mail to: talk-leave@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug Reporting: suppo=rt@webdna.us
=To answer the questions:
=C2=A0 =C2=A0 =E2=80=A2 Will the code work for nested arrays?
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Yes, it will flatten the array and save it in t=he database with the full path name for each node.
=C2=A0 =C2=A0 =E2=80=A2 Will it allow for JSON that has colons - or any cha=racter - in the node names?
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Everything should be fine except tabs/linefeeds=/etc.
Using that example (adding double quotes around duration to make the JSON v=alid), it would be saved in the database with the following column names=3D=values
list:0:points.bean.pointsBase:0:time=3D2000
list:0:points.bean.pointsBase:0:caption=3Dcaption text
list:0:points.bean.pointsBase:0:duration=3D5000
list:0:points.bean.pointsBase:1:time=3D6000
list:0:points.bean.pointsBase:1:caption=3Dcaption text
list:0:points.bean.pointsBase:1:duration=3D3000
The improved JSON parsing would take care of the bugs on the test suite pag=e. The unwanted whitespace would be fixed, and I believe the escaped quotes= would be handled correctly too.
What would we call this? The behavior will be quite different than the orig=inal [JSONstore] : should we name it something else like [JSONSTOREPLUS], o=r replace the original?
- chris---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list talk@w=ebdna.us
To unsubscribe, E-mail to: talk-leave@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug Reporting: suppo=rt@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...