lib/spontaneous/json.rb in spontaneous-0.2.0.alpha3 vs lib/spontaneous/json.rb in spontaneous-0.2.0.alpha4

- old
+ new

@@ -1,18 +1,17 @@ # encoding: UTF-8 require 'oj' Oj.default_options = { - symbol_keys: true, mode: :compat } if defined?(Oj) module Spontaneous module JSON module OjParser def parse(json_string) - ::Oj.load(json_string) + ::Oj.load(json_string, symbol_keys: true) rescue nil end def encode(object)