diff --git a/core/encoding/json/tokenizer.odin b/core/encoding/json/tokenizer.odin index 5c20a2cc3..1a57ba6f0 100644 --- a/core/encoding/json/tokenizer.odin +++ b/core/encoding/json/tokenizer.odin @@ -485,7 +485,7 @@ is_valid_string_literal :: proc(str: string, spec: Specification) -> bool { case '"': // okay case '\'': - if spec != .JSON { + if spec == .JSON { return false } // okay