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

Don Brutzman brutzman at nps.edu
Sun Feb 19 21:54:46 PST 2017


bug fixed in recently posted build - thanks!


On 2/15/2017 7:01 PM, yottzumm at gmail.com wrote:
> Here’s what output looks like in the JSON:
>
>
>
> "@justify":["IDDLE","MIDDLE\""]
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
>
>
>
> *From: *yottzumm at gmail.com <mailto:yottzumm at gmail.com>
> *Sent: *Wednesday, February 15, 2017 8:27 PM
> *To: *Don Brutzman <mailto:brutzman at nps.edu>; Roy Walmsley <mailto:roy.walmsley at ntlworld.com>; X3D Graphics public mailing list <mailto:x3d-public at web3d.org>
> *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
>
>
>
>
>


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list