Re:Ask HN: Do you use JSON Schema? Help us shape its future ...
by jamesappledev on Monday January 30, 2023 @07:24PM
(#34588939)
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)/"
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)/"