Sha256: 56b0344a693409de963e80f1b241e22df10b7ab1ad27f83170102b71bf93788e

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH << '.'
$LOAD_PATH << File.join(__dir__, '../lib')
$LOAD_PATH << File.join(__dir__, '../ext')

require 'active_support'
require 'json'
require 'oj'

Oj.mimic_JSON()
# Oj::Rails.mimic_JSON()

begin
  ::JSON.parse('{ "foo": 84e }')
  #::JSON.parse('{ "foo": 84eb234 }')
rescue Exception => e
  puts "#{e.class}: #{e.message}"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oj-3.16.2 test/foo.rb
oj-3.16.1 test/foo.rb
oj-3.15.1 test/foo.rb