How to validate JSON to ensure all fields are non-empty and age is >0?
Through a Rest API endpoint, I accept JSON and using a Kafka Producer, I publish the JSON to a topic. The JSON will have this format: { "id": "uniqueIdentifier", "name": "PersonName", "age": PersonAge } and the send message method in…