public List < TreeRule > parseTreeRulesV1 ( ) { final String json = query . getContent ( ) ; if ( json == null || json . isEmpty ( ) ) { throw new BadRequestException ( HttpResponseStatus . BAD_REQUEST , "Missing message content" , "Supply valid JSON formatted data in the body of your request" ) ; } return JSON . parseToObject ( json , TR_TREE_RULES ) ; }
Parses one or more tree rules