The query parsers already check for problems in XContent (e.g. missing fieldnames, wrong token types) in many places. We should investigate if it is possible to have some generic tests in the BaseQueryTestCase that check for expected exceptions and other things that happen when parsing invalid json.
The query parsers already check for problems in XContent (e.g. missing fieldnames, wrong token types) in many places. We should investigate if it is possible to have some generic tests in the BaseQueryTestCase that check for expected exceptions and other things that happen when parsing invalid json.