Adds support for the .json format in Modifaxe.
First install Modifaxe/JSON:
# install haxelib release
haxelib install modifaxe.json
Next add the library to your .hxml or compile command:
-lib modifaxe
Finally, you can set Modifaxe's default format to .json:
-D modifaxe_default_format=json
Alternatively, you can set the format to .json on a metadata basis:
@:modifaxe(Format=Json)
function getWindowSize() {
return 800;
}