Open johnwright opened 7 years ago
It's common in JSON to use arrays as tuples, e.g.
{ "pairs": [ [1, 2], [3, 4] ] }
To support this pattern, add pair, triple, quad codecs (and/or tuple2, tuple3, tuple4 etc.)
pair
triple
quad
tuple2
tuple3
tuple4
When decoding arrays as tuples, unexpected extra elements should be ignored.
It's common in JSON to use arrays as tuples, e.g.
To support this pattern, add
pair
,triple
,quad
codecs (and/ortuple2
,tuple3
,tuple4
etc.)When decoding arrays as tuples, unexpected extra elements should be ignored.