TypeScript JSON-Array Validator
In other words, you're trying to validate that the parsed JSON matches the data structure you're expecting :)

I recommend creating a JSON Schema, updating it as you develop your front-end, and using a Schema Validator library to validate that the object you're creating is consistent with the schema.

This way, the schema will serve both as API documentation and as your test.