On Sat, 2010-11-20 at 17:11 +0200, Aapo Rantalainen wrote: > > do not use the internal JSON parser, use JSON-GLib instead. Clutter ≥ > > 1.0 can (and should) depend on the system copy of JSON-GLib. > > > > Clutter 1.4 requires an explicit override for using the internal > > fallback code. > > > > Clutter 1.6 will remove the internal fallback entirely. > > Hi, I have used internal-json vwith clutter and now tested difference > on clutter-1.4.0 + libjson-glib-0.10.2 or internal-json > ./configure > and > ./configure -with-json=internal > > My application is using JSON-files which contains lots of > #-comments.(They are very handy and makes jsons even more human > readable)
unfortunately, they are also illegal in JSON. *and* in ECMAScript, which at most should be the super-set used. > Internal json is handling them but libjson-glib-0.10.2 doesn't > understand them (causing files non-usable). you might be able to get away with using '//' instead (which the tokenizer used by JSON-GLib always honors). but it would be exploiting the behaviour of the parser, and if I change the tokenizer in the future it might just go away. ciao, Emmanuele. -- Emmanuele Bassi, Open Source Software Engineer Intel Open Source Technology Center _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
