Added option to parse number as integer, disabled by default
This commit is contained in:
1 parent
0cd681e6b7
commit
195dbd658d
3 files changed
+10
-8
No files matched your search
@@ -4,7 +4,7 @@ import "core:mem"
|
||||
|
||||
// NOTE(bill): is_valid will not check for duplicate keys
|
||||
is_valid :: proc(data: []byte, spec := Specification.JSON) -> bool {
|
||||
p := make_parser(data, spec, mem.nil_allocator());
|
||||
p := make_parser(data, spec, false, mem.nil_allocator());
|
||||
if p.spec == Specification.JSON5 {
|
||||
return validate_value(&p);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user