The documentation claims that "JsonValue is supported as both argument and return type", but TypeConversion will ignore this case.
- For a boolean/int/String it will fail because it "cannot cast java.lang.Boolean / java.lang.Integer / java.lang.String as elemental.json.JsonValue"
- For null it will return
null instead of JsonNull
The documentation claims that "JsonValue is supported as both argument and return type", but
TypeConversionwill ignore this case.nullinstead ofJsonNull