Currently deserializing to facet_value::Value fails if the input contains a non-finite (NaN, infinity, etc) float value.
This makes sense for JSON since it doesn't allow non-finite floats, but other formats like YAML do allow them.
My goal is to use facet-value to do partial tree extraction while parsing YAML files, but I'm currently blocked because the input files need to support NaN/Inf values.
I'd be happy to submit a PR making the change, but obviously that may be undesired from the JSON side.
Currently deserializing to
facet_value::Valuefails if the input contains a non-finite (NaN, infinity, etc) float value.This makes sense for JSON since it doesn't allow non-finite floats, but other formats like YAML do allow them.
My goal is to use
facet-valueto do partial tree extraction while parsing YAML files, but I'm currently blocked because the input files need to support NaN/Inf values.I'd be happy to submit a PR making the change, but obviously that may be undesired from the JSON side.