I have this kind of JSON that needs to be converted to POJO using JsInterop:
"ACL": {
"*": {
"read": true
},
"asdf123asdf": {
"read": true,
"write": true
}
}
Where the asdf123asdf
can be any property name. Here's one I have some up (partially)
@JsType(isNative = true, namespace= JsPackage.GLOBAL, name="Object")
public class ACL {
@JsProperty(name="*")
String asterisk;
}
Is there a work around to implment the dynamic property name?