Please, don't write your own JSON parser/validator. There's JSON Schema https://json-schema.org which has implementations in most languages.
You can valiate your JSON by a given, standardized JSON schema file - and you're basically done.
After the validation, it's probably good practise to map the JSON to some DTO and may do some further validation which doesn't check the structure of the data but it's meaning.
replies(2):