Composable

Follow up on JSON Document to Document Transforms

A while back I was researching JSON document to document transforms. At this point I was frustrated, I was struggling to find any decent spec for performing these kind of transforms.

The good news is, I finally stumbled on a really nice library and spec called JSON-e. It has a really powerful syntax which is JSON based as well as a growing support for performing the transform in a number of languages (JavaScript, Python, Go, Rust).

Exploring an Open Spec for JSON Document to Document Transforms

I’ve been doing a lot of research recently for Uniform on how to we might extract key data from API responses based on what type of information the current context is looking for.

For example, when you call a products listing API from some headless commerce system you might be doing so because you are interested in a list of product titles and prices. You might equally, just be interested in a set of product images. Ultimately, it would be great to transform from a concrete API implementation to something which is: more generic, open and appropriate for the context in which you are consuming the data.