JsonTool

What it is

JsonTool allows you to transform JSON using JavaScript– right in your browser. Use it to normalize your objects, query a data set, sort records, or whatever you want!

I built this project because at one point I needed to diff the results of an API migration. The API had changed its shape somewhat, but I needed to do a side by side comparison of the data coming back. So, first I needed to make the “after” shape match the “before” shape so it would be an apples-to-apples comparison.

How to use JsonTool:

  1. Paste or upload some JSON into the editor on the left.
  2. Massage the data in the transform() function in the middle editor. Return the object you want.
  3. Click the TRANSFORM button.

How it works

Just a little Vue app running in Jekyll 🙂. I use the awesome Ace editor for the code rendering.

You can check out the source code here.