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

yottzumm at gmail.com yottzumm at gmail.com
Wed Feb 15 19:01:21 PST 2017


Here’s what output looks like in the JSON:

"@justify":["IDDLE","MIDDLE\""]

Sent from Mail for Windows 10

From: yottzumm at gmail.com
Sent: Wednesday, February 15, 2017 8:27 PM
To: Don Brutzman; Roy Walmsley; X3D Graphics public mailing list
Subject: X3DJSAIL. Handling of MFStrings. First non-quote char trimmed off.

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/4661991f/attachment.html>


More information about the x3d-public mailing list