HackerTrans
トップ新着トレンドコメント過去質問紹介求人

jamesappledev

no profile record

コメント

jamesappledev
·3 年前·議論
I think JSON allows both of your use cases, you'll just have to define your own deserialization.

We've used { "__type": "DOG" } as metadata flags in GraphQL and JSON API's for a long time.

I rarely see an API return anything other than an ISO8601 UTC datetime string anymore other than Xero's horrific .NET(?) string " /Date(1326480130277+1300)/"
jamesappledev
·3 年前·議論
We already use comments in JSON without JSONC in lots of projects. Adding a { "//": "My Comment" } line works and most API's ignore excess fields.
jamesappledev
·4 年前·議論
That's pretty much what coc.nvim is