Open glenveegee opened 4 years ago
This looks very similar to the items function that was proposed a while back. We plan to include this in the next version of our specification.
It's slightly different from the items proposal in that it would be polymorphic by working on both JSON objects and JSON arrays.
Given a
array
orobject
output an array with values indexed on keys:For example in Javascript one might implement it as follows:
Examples: