3

I am reading a big array of JSONS from a file with ijson.items , but numbers are converted to type Decimal.

Example Decimal('14.2')

The documentation says that there is an option use-float = true. But I don't know where to put this option.

Is it possible to use ijson.itemsand obtain floats?

Juan
  • 339
  • 3
  • 15

1 Answers1

5
ijson.items(file, 'your.prefix', use_float=True)
GProst
  • 9,229
  • 3
  • 25
  • 47