We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VERSION 1.2.73 String str = "[\n" + " {\n" + " "altitude": 109.0,\n" + " "angle": 5.0,\n" + " "index": 1,\n" + " "type": 1\n" + " },\n" + " {\n" + " "altitude": 1307.0,\n" + " "angle": 5.0,\n" + " "index": 2,\n" + " "type": 1\n" + " },\n" + " {\n" + " "altitude": 22.0,\n" + " "angle": 7.0,\n" + " "index": 3,\n" + " "type": 1\n" + " },\n" + " {\n" + " "altitude": 22.0,\n" + " "angle": 7.0,\n" + " "index": 4,\n" + " "type": 2\n" + " },\n" + " {\n" + " "altitude": 22.0,\n" + " "angle": 7.0,\n" + " "index": 5,\n" + " "type": 2\n" + " },\n" + " {\n" + " "altitude": 22.0,\n" + " "angle": 7.0,\n" + " "index": 6,\n" + " "type": 2\n" + " },\n" + " {\n" + " "altitude": 22.0,\n" + " "angle": 7.0,\n" + " "index": 7,\n" + " "type": 2\n" + " }\n" + "]"; System.out.println(JSON.isValidArray(str)); // false JSONValidator validator = JSONValidator.from(str); validator.validate(); System.out.println(validator.getType()); // null
The text was updated successfully, but these errors were encountered:
Merge pull request #3459 from biyanwen/byw/bug_3453
1f3dd75
修复bug #3453
No branches or pull requests
VERSION 1.2.73
String str = "[\n" +
" {\n" +
" "altitude": 109.0,\n" +
" "angle": 5.0,\n" +
" "index": 1,\n" +
" "type": 1\n" +
" },\n" +
" {\n" +
" "altitude": 1307.0,\n" +
" "angle": 5.0,\n" +
" "index": 2,\n" +
" "type": 1\n" +
" },\n" +
" {\n" +
" "altitude": 22.0,\n" +
" "angle": 7.0,\n" +
" "index": 3,\n" +
" "type": 1\n" +
" },\n" +
" {\n" +
" "altitude": 22.0,\n" +
" "angle": 7.0,\n" +
" "index": 4,\n" +
" "type": 2\n" +
" },\n" +
" {\n" +
" "altitude": 22.0,\n" +
" "angle": 7.0,\n" +
" "index": 5,\n" +
" "type": 2\n" +
" },\n" +
" {\n" +
" "altitude": 22.0,\n" +
" "angle": 7.0,\n" +
" "index": 6,\n" +
" "type": 2\n" +
" },\n" +
" {\n" +
" "altitude": 22.0,\n" +
" "angle": 7.0,\n" +
" "index": 7,\n" +
" "type": 2\n" +
" }\n" +
"]";
System.out.println(JSON.isValidArray(str)); // false
JSONValidator validator = JSONValidator.from(str);
validator.validate();
System.out.println(validator.getType()); // null
The text was updated successfully, but these errors were encountered: