My current project employs retrofit kotlin json serialisation.
I have configured Json as follows:-
Json { ignoreUnknownKeys = true isLenient = true }
Which allows my application to parse Json with unknown fields, however I wish to report
all unknown Json fields that I receive.
I cannot see any wahy to achieve this.
With Jackson faster xml Json library this is easily achieved, however I wish to use as few 3rd party libraries as possible.
Is there any way I can have lenient Json serialisation and capture all unknown Json fields?