Hacker News new | ask | show | jobs
by microtherion 274 days ago
Presumably that was to support time values.
3 comments

That makes sense, but I think the vast majority of tools that need time values would actually expect users to just input a string and parse that themselves.

IMO anything other than the basic types supported by JSON (number, true, false, null) ought to be be parsed as a string. Or if you really insist, some kind of special syntax to make it clear it's not a string would probably be acceptable.

What do you mean by "support"?

   fastest_mile: 2:54
Not saying it's a good idea, mind you, but at least it's an ethos.
Does anyone do it that way?