I cannot parse a value for Enum1.EnumValue1 because of the argument name being "value". If I change it to any (well, maybe not any, but "v" works, for instance) other name, it works.
var writer = new JsonWriter<Enum1>();
var json:String = writer.write(EnumValue1("test"));
trace(json); // {"EnumValue1": {"value": "test"}}
var parser = new JsonParser<Enum1>();
parser.fromJson(json, '');
trace(parser.errors); // []
trace(parser.value); // null
Considering the following enum:
I cannot parse a value for
Enum1.EnumValue1
because of the argument name being"value"
. If I change it to any (well, maybe not any, but"v"
works, for instance) other name, it works.