Closed jstolarek closed 4 years ago
This is a problem from Haxe.
In the @:jcustom*
metadata, you need to specify the full path of the class you are using, like package.Object
.
In your case you have put both file in Test.hx
without package, thus currently the only way to access Object
is to use std.Test.Object.customParse
.
The problem didn't appear for @:jcustomwrite
because it hasn't been use since you don't have a JsonWriter
of Object
I'll update soon the readme to try and prevent such problems.
The readme have been updated.
Note: the std.
requirement if you don't have package should have been fixed with https://github.com/HaxeFoundation/haxe/issues/9367
Consider the following program (taken from the readme +
hxjsonast
qualifier onJson
data type + amain
function):Compiling this yields an error on the
@:jcustomparse
annotation:@:jcustomwrite
causes no such problems though.