A basic way could be to use a JsonExtractor to pick out certain attributes in the json, AttributeValidator to see if they have values. That won't work though if you're expecting there to be empty values.
A more complete approach could be a JsonFlattener with a SchemaScanner perhaps.
A basic way could be to use a JsonExtractor to pick out certain attributes in the json, AttributeValidator to see if they have values. That won't work though if you're expecting there to be empty values.
A more complete approach could be a JsonFlattener with a SchemaScanner perhaps.
An approach along similar lines could be to read in the JSON Schema File with a FeatureReader set to only read schema, then concat the list down to a single attribute. Then read your other JSON files in (getting the schema as well) and repeat the same with the schema and check that the two result schemas (from your JSON Schema File and JSON Data) are the same
A basic way could be to use a JsonExtractor to pick out certain attributes in the json, AttributeValidator to see if they have values. That won't work though if you're expecting there to be empty values.
A more complete approach could be a JsonFlattener with a SchemaScanner perhaps.
Thanks for the response @ctredinnick . I have shared a sample schema and JSON file. I need to validate the file against the schema. Please have a look and suggest the best possible approach.