Hacker News new | ask | show | jobs
by speedgoose 811 days ago
If you need a specific exotic JSON parser to parse the numbers you have correctly, I would argue that you should serialise them as strings and not as numbers.

That's what prometheus is doing for example. https://prometheus.io/docs/prometheus/latest/querying/api/

1 comments

That only works if you are the one who serializes the json in the first place.