aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json/validator.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-01-07 23:08:38 +0000
committergingerBill <bill@gingerbill.org>2019-01-07 23:08:38 +0000
commit5af20aa467238ebfdec26dde70429bcb553224db (patch)
tree4eb1e61ec7ca794a3171e527190dd90bc535c04f /core/encoding/json/validator.odin
parentcd2c4c02e1646fc39364857bbee1a6060bd173ac (diff)
Make encoding/json use []byte rather than string
Diffstat (limited to 'core/encoding/json/validator.odin')
-rw-r--r--core/encoding/json/validator.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/encoding/json/validator.odin b/core/encoding/json/validator.odin
index 332716e24..17073f102 100644
--- a/core/encoding/json/validator.odin
+++ b/core/encoding/json/validator.odin
@@ -3,7 +3,7 @@ package json
import "core:mem"
// NOTE(bill): is_valid will not check for duplicate keys
-is_valid :: proc(data: string, spec := Specification.JSON) -> bool {
+is_valid :: proc(data: []byte, spec := Specification.JSON) -> bool {
p := make_parser(data, spec, mem.nil_allocator());
if p.spec == Specification.JSON5 {
return validate_value(&p);