title: Ruby JSON parse non-integer numbers as strings (or BigDecimal)
body: <p>Is there any way to tell the default ruby JSON library to parse non-integer numeric values as string (or BigDecimal?) instead of floats?</p>
  
  <p>ie <code>JSON.parse('{"foo": 123.45}')['foo'].class</code> outputs <code>Float</code>, which may lead to precision issues. </p>
  
  <p>PD: the oj library supports loading these values as BigDecimals.</p>
  
  <p>PD2: seems there isn't: <a href="https://github.com/flori/json/blob/76f41a84e2bace20c3076aba53887537e37dfdb2/lib/json/pure/parser.rb#L196" rel="nofollow">https://github.com/flori/json/blob/76f41a84e2bace20c3076aba53887537e37dfdb2/lib/json/pure/parser.rb#L196</a></p>