-
-
Notifications
You must be signed in to change notification settings - Fork 263
Open
Description
We are currently using :quirks_mode=>false, :empty_string=>false options. But they are not available in the new parser. Is there a recommended alternative?
> Oj.load("", :mode=>:strict, :quirks_mode=>false, :empty_string=>false)
JSON::ParserError: Empty input (after ) at line 1, column 1 [parse.c:1062]
> Oj.load("123", :mode=>:strict, :quirks_mode=>false, :empty_string=>false)
Oj::ParseError: unexpected non-document value
> Oj::Parser.new(:usual).parse("")
=> nil
> Oj::Parser.new(:usual).parse("123")
=> 123
Metadata
Metadata
Assignees
Labels
No labels