skip to Main Content

Better way of writing validation for a JSON String

I have a JSON String: { "productName": "Gold", "offerStartDate": "01152023", "offerEndDate": "01152024", "offerAttributes": [ { "id": "TGH-DAD3KVF3", "storeid": "STG-67925", "availability": true } ], "offerSpecifications": { "price": 23.25 } } The validation logic for the same is written as Map<String, Object>…

VIEW QUESTION
Back To Top
Search