[x3d-public] Efficient XML Interchange (EXI) for JSON - W3C working draft

John Carlson yottzumm at gmail.com
Sun Apr 17 23:04:45 PDT 2016


To be fair, I ran the conversion on the exificient demo site and got essentially the same results.  Perhaps people have already tried that.

How does XML fair?

John

> On Apr 18, 2016, at 1:14 AM, John Carlson <yottzumm at gmail.com> wrote:
> 
> I converted my X3DJSONLD to hex like the exificient demo and got essentially the same results.
> 
> John
>> On Apr 18, 2016, at 12:58 AM, John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com>> wrote:
>> 
>> That’s http://coderextreme.net/X3DJSONLD/index2.html <http://coderextreme.net/X3DJSONLD/index2.html>.  I will  try it as soon as I send this email :).
>> 
>> John
>>> On Apr 18, 2016, at 12:49 AM, John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com>> wrote:
>>> 
>>> Well, the JavaScript implementation of EXI JSON found here http://exificient.github.io/javascript/demo/processJSON.html <http://exificient.github.io/javascript/demo/processJSON.html> has some deficiencies.
>>> I tried loading converting flipper.json to EXI and back and found there were serious flaws in the result.  Obviously, it may be my coding,
>>> so I present my coding here http://coderextreme.net/index2.html <http://coderextreme.net/index2.html>
>>> 
>>> If you want to look at the original, bring up florig.json.   The flexi.json version is the converted version.  You can run the conversion yourself on the
>>> page (click on the middle “here” and then on the right “here”).  I use decimal instead of hexadecimal as used in the demo, but I don’t think there’s any difference in the results.  I took out the performance stuff as well.   There may be an issue with my coding, but I tried to follow the example, taking out the unnecessary stuff (which may have been necessary.  It would be interesting if more people tried their JSON files to see if the JSON conversion works.  Obviously, the XML, being text, may fair much better in tests.  Perhaps converting JSON to XML first is the way to go.
>>> 
>>> Also, be careful running your tests.  It may consume your system resources.  I tried the Icosahedron, and I had to kill my browser.  I have a sickly system…your’s may fair better.
>>> 
>>> I will try JSON text (not a JavaScript Object) and let you know the results.
>>> 
>>> John
>>>> On Feb 9, 2016, at 10:40 PM, Leonard Daly <Leonard.Daly at realism.com <mailto:Leonard.Daly at realism.com>> wrote:
>>>> 
>>>> John,
>>>> 
>>>> I found this site that has an XML <--> EXI translator.
>>>> 
>>>> http://openexi.sourceforge.net/ <http://openexi.sourceforge.net/>
>>>> 
>>>> 
>>>> Leonard Daly
>>>> 
>>>> P.S. John's original EXI truncated here. Use the original message if you want to access it.
>>>> 
>>>>> Here’s flipper.json encoded.  I don’t see any XML.  strange!
>>>>> 
>>>>> 80 40 01 56 0c d1 10 29 01 c1 c9 bd 99 a5 b1 94 
>>>>> 2d 25 b5 b5 95 c9 cd a5 d9 95 82 90 1d 99 5c 9c 
>>>>> ...
>>>> 
>>>> 
>>>>>> On Feb 9, 2016, at 9:56 PM, Leonard Daly < <mailto:Leonard.Daly at realism.com>Leonard.Daly at realism.com <mailto:Leonard.Daly at realism.com>> wrote:
>>>>>> 
>>>>>> This is really cool. It's a whole other encoding for free!
>>>>>> 
>>>>>> I notice that there is no support for comments as traditionally defined. I know that the current X3D JSON encoding moves comments into a field. Is there any issue with that in this conversion? (I didn't see any, but I'm asking to make sure I haven't missed something.)
>>>>>> 
>>>>>> John: Can you try one of your examples in their online converter:  <http://exificient.github.io/javascript/demo/processJSON.html>http://exificient.github.io/javascript/demo/processJSON.html <http://exificient.github.io/javascript/demo/processJSON.html>
>>>>>> 
>>>>>> 
>>>>>> Leonard Daly
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> from the  <mailto:public-exi at w3.org>public-exi at w3.org <mailto:public-exi at w3.org> mailing list: 
>>>>>>> 
>>>>>>>> On 2/3/2016 2:41 AM, Peintner, Daniel (ext) wrote: 
>>>>>>>>> All, 
>>>>>>>>> 
>>>>>>>>> Just in case you haven't noticed. The first public working draft of "EXI for JSON" has been published. [1] 
>>>>>>>>> 
>>>>>>>>> EXI for JSON allows one to convert JSON documents in an efficient representation by means of EXI. Lossless round-trip conversion back to the original JSON structures is supported too. 
>>>>>>>>> 
>>>>>>>>> For people that would like to play a bit with it there are already some early implementations available in Java [2, 3], JavaScript [4] and C [5]. 
>>>>>>>>> 
>>>>>>>>> -- Daniel 
>>>>>>>>> 
>>>>>>>>> [1]  <https://www.w3.org/TR/2016/WD-exi-for-json-20160128/>https://www.w3.org/TR/2016/WD-exi-for-json-20160128/ <https://www.w3.org/TR/2016/WD-exi-for-json-20160128/> 
>>>>>>>>> [2]  <https://github.com/EXIficient/exificient-for-json>https://github.com/EXIficient/exificient-for-json <https://github.com/EXIficient/exificient-for-json>, Java library 
>>>>>>>>> [3]  <https://github.com/EXIficient/exificient-gui>https://github.com/EXIficient/exificient-gui <https://github.com/EXIficient/exificient-gui>, Java GUI 
>>>>>>>>> [4]  <http://exificient.github.io/javascript/demo/processJSON.html>http://exificient.github.io/javascript/demo/processJSON.html <http://exificient.github.io/javascript/demo/processJSON.html>, JavaScript Demo 
>>>>>>>>> [5]  <https://github.com/EXIficient/exificient-for-json.c>https://github.com/EXIficient/exificient-for-json.c <https://github.com/EXIficient/exificient-for-json.c>, C implementation 
>>>>>>> 
>>>>>>> all the best, Don 
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> Leonard Daly
>>>>>> 3D Systems & Cloud Consultant
>>>>>> X3D Co-Chair on Sabbatical
>>>>>> LA ACM SIGGRAPH Chair
>>>>>> President, Daly Realism - Creating the Future
>>>>>> _______________________________________________
>>>>>> x3d-public mailing list
>>>>>> x3d-public at web3d.org <mailto:x3d-public at web3d.org>
>>>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org <http://web3d.org/mailman/listinfo/x3d-public_web3d.org>
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> x3d-public mailing list
>>>>> x3d-public at web3d.org <mailto:x3d-public at web3d.org>
>>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org <http://web3d.org/mailman/listinfo/x3d-public_web3d.org>
>>>> 
>>>> 
>>>> -- 
>>>> Leonard Daly
>>>> 3D Systems & Cloud Consultant
>>>> X3D Co-Chair on Sabbatical
>>>> LA ACM SIGGRAPH Chair
>>>> President, Daly Realism - Creating the Future
>>>> _______________________________________________
>>>> x3d-public mailing list
>>>> x3d-public at web3d.org <mailto:x3d-public at web3d.org>
>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org <http://web3d.org/mailman/listinfo/x3d-public_web3d.org>
>>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160418/b317b006/attachment-0001.html>


More information about the x3d-public mailing list