10.10.3 Implementation details

The haxe.Json API automatically uses native implementation on targets where it is available, i.e. JavaScript, Flash and PHP and provides its own implementation for other targets.

Usage of Haxe own implementation can be forced with -D haxeJSON compiler argument. This will also provide serialization (but not deserialization) of enums by their index, maps with string keys and class instances.

Older browsers (Internet Explorer 7, for instance) may not have a native JSON implementation. In case it's required to support them, we can include one of the JSON implementations available on the internet in the HTML page.