adamritter / fastgron

High-performance JSON to GRON (greppable, flattened JSON) converter
MIT License
588 stars 10 forks source link

YAML support (terminate called after throwing an instance of 'simdjson::simdjson_error') #15

Open chs-bnet opened 11 months ago

chs-bnet commented 11 months ago

Using fastgron 0.6.3 on a fairly typical yaml file I'm getting this error:

terminate called after throwing an instance of 'simdjson::simdjson_error'
  what():  SCALAR_DOCUMENT_AS_VALUE: A JSON document made of a scalar (number, Boolean, null or string) is treated as a value. Use get_bool(), get_double(), etc. on the document instead. 
Aborted (core dumped)

I've gone ahead and built 0.6.4 and tried but am still getting the same error.

Edit: Tested with and without -s stream mode option. Same results.

adamritter commented 7 months ago

YAML is not yet supported, but I welcome contributions