I was trying the %JSON.Adapter backport to cache and try it also in IRIS and i found a kind of an issue regarding to export and object to json that is an inheritance of %ListOfObjects
If we have a list of elementtype of and object and then we try to export this to a json we get this json instead of a correct json.
exported json:
{
"ElementType":"test.element",
"Size":"1"
}
Json that we want:
[
{
"field1":"testField1",
"field2":"testField2"
}
]
Test classes: