psv-format / psv.c

This is a reference implementation of a Markdown to JSON converter, designed specifically for parsing Markdown tables into JSON objects. It allows for easy conversion of Markdown documents containing tables into structured JSON data. https://psv-format.github.io/
2 stars 0 forks source link

Output all values as string unless in type autodetection mode #4

Open mofosyne opened 4 months ago

mofosyne commented 4 months ago

Using autodetection for cell content seems to break the Unix philophy of doing one thing well with minimum magic as there is a chance of misrecognising a value as a bool rather than as a string e.g. yes/no true/false issue in yaml.

Let's default to all string, but have '-a' autodetect enable flag instead.

Once we get attributes type defined, then we could also use that as a method to pick the right type as well.