Oj v2.9.7 Release Notes

Release Date: 2014-06-24 // almost 10 years ago
    • ๐Ÿ”„ Changed dump to use raw / and raw \n in output instead of escaping.
    • ๐Ÿ”„ Changed the writer to always put a new line at the end of a top level JSON object. It makes output easier to view and edit with minimal impact on size.
    • ๐Ÿ“œ Worked around the file.gets look ahead caching as long as it is not called while parsing (of course).
    • ๐Ÿ“œ Thanks to lautis for a new parse option. quirks_mode allows Oj to behave quirky like the JSON gem. Actually the JSON gem has it backwards with quirky mode supporting the JSON spec and non-quirky limiting parsing to objects and arrays. Oj stays consistent with the JSON gem to avoid confusion.
    • ๐Ÿ›  Fixed problem with sc_parse not terminating the string when loaded from a file.
    • Thanks go to dchelimsky for expanding the code sample for the ScHandler.