Skip to content

YAML Specific symbols support: .inf, .nan, ~, and multi-documents #24

@jkulvich

Description

@jkulvich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions