Greetings from the developer of Jsonix! Thank you for sharing your feedback. :)
If you encounter any issues, please don't hesitate to report them here. I appreciate your input and will work on resolving them.
In the meantime, you can address this by including an any element property like so:
{
type: 'classInfo',
localName: 'MyType',
propertyInfos: [{
type: 'anyElement',
name: 'catchAll',
collection: true
}]
}
This setup will capture all "unknown" elements. While it may not be a perfect solution as the elements are not completely ignored and must be specified in each instance, it serves as a temporary workaround. Feel free to submit an issue, and I'll have it addressed in version 2.1.1.
P.S. Keep in mind that version 2.1.0 was recently released.
Update
The issue has been resolved in the upcoming release of 2.1.1.