[x3d-public] X3DJSAIL. Handling of MFStrings. First non-quote char trimmed off.

yottzumm at gmail.com yottzumm at gmail.com
Wed Feb 15 17:27:02 PST 2017


I notice a problem with the handling of my MFStrings.  Namely, the first character of the first SFString in an MFString is trimmed off, and the final \” is kept on when converting to a JSON array.  It also looks like it happens when defaults are introduced, see @transitionType in cobweb.output.json.  Attached.  No errors on output.

Need to verify if this is correct way to specify MFStrings, and if not, can we make it the same between all MFStrings, including text justify constants?  Is append or setString preferred?  Can we reduce the special cases, if any?  If below is the correct way, we need to repair the above paragraph.

                Background0_2_4.setBackUrl(new String[] {"\"cubemap/BK.png\",\"http://coderextreme.net/X3DJSONLD/cubemap/BK.png\""});
                Background0_2_4.setBottomUrl(new String[] {"\"cubemap/BT.png\",\"http://coderextreme.net/X3DJSONLD/cubemap/BT.png\""});
                Background0_2_4.setFrontUrl(new String[] {"\"cubemap/FR.png\",\"http://coderextreme.net/X3DJSONLD/cubemap/FR.png\""});
                Background0_2_4.setLeftUrl(new String[] {"\"cubemap/LF.png\",\"http://coderextreme.net/X3DJSONLD/cubemap/LF.png\""});
                Background0_2_4.setRightUrl(new String[] {"\"cubemap/RT.png\",\"http://coderextreme.net/X3DJSONLD/cubemap/RT.png\""});
                Background0_2_4.setTopUrl(new String[] {"\"cubemap/TP.png\",\"http://coderextreme.net/X3DJSONLD/cubemap/TP.png\""});
                NavigationInfo0_2_0.setType(new String[] {"\"EXAMINE\""});

Thanks,

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170215/04007ef6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cobweb.output.json
Type: application/json
Size: 7921 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170215/04007ef6/attachment-0002.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cobweb.java
Type: application/octet-stream
Size: 10810 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170215/04007ef6/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cobweb.json
Type: application/json
Size: 9237 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170215/04007ef6/attachment-0003.json>


More information about the x3d-public mailing list