The problem appears to happen when to_json tries to serialize the vocabulary property (probably because vocabulary is huge, or has cyclic references, not sure which!).
I had to work around this by writing a custom serializer that converts Mida::Items to hashes containing only id, type, and properties attributes.
Trying to serialize Mida items to json appears to trigger an infinite loop:
The problem appears to happen when
to_json
tries to serialize thevocabulary
property (probably because vocabulary is huge, or has cyclic references, not sure which!).I had to work around this by writing a custom serializer that converts
Mida::Items
to hashes containing only id, type, and properties attributes.