Skip to content
Advertisement

Tag: json-serialization

Java multi-schema generator using annotations

I have a series of inter-related Java classes which form a super-set of possible schema. I’m looking for some way to annotate/tag individual fields such that I can create separate JSON schema for each ‘namespace’. A simple example: Output would have separate Alice and Bob schema, where Alice has a and b, and Bob has b and c. My current

Advertisement