Re: json
- Posted by CoJaBo2 Aug 03, 2012
- 2700 views
The examples don't seem to run, so I couldn't test (it just loops forever); looking at the code, it doesn't seem to handle the escapes \b and \f, or decimal numbers (1.23).
Serializing, in particular, looks like it might be a nightmare.
Say you have the sequence "abc"; in Eu, this is equal to {97,98,99}. In JSON, however, the string "abc" and the array [97,98,99] are completely distinct values.
This also applies to decoding, where the distinction between "abc" and [97,98,99] is lost and has to be inferred by the application.