add integration test to wait for json without value refactor JSON condition value parsing and validating adjusting test to reflect the error message refactoring