I have looked inside this repo to find if it able to convert some YAML specific symbols like .inf, .-inf, .nan, and ~.
In one of my own projects, when I have needed to same conversion from YAML to JSON it was resolved as:
.inf = 2147483647 (math.MaxInt32)
-.inf = -2147483648 (math.MinInt32)
.nan = 0
~ = null
And what about YAML multi-document files?
It might be 2 functions where first will fetch only first document (by compatibility reasons) and processes it as JSON, and second fetches all documents and returns array of JSON converted docs.