The JSON-RPC 2.0 Shell now boasts pretty JSON formatting

Finally, about a year after its 1.0 release, the JSON-RPC 2.0 Shell now does pretty JSON formatting! I make almost daily use of it, during development and testing of the various JSON-RPC 2.0 services around the Transaction Company, even at customer presentations here in the London City. Given that, the addition of pretty JSON formatting was a feature long overdue!

If you take a closer look at the screenshot you’ll see that I’m employing a “compact” style of JSON formatting that saves vertical lines by opening new JSON arrays and objects on the same line. The formatter is not just pretty (i.e. blonde ;-)) but intelligent too! For instance, it has an algorithm that keeps the items of an array on the same line if their count is equal or less than three. This is done to improve readability and conserve screen space. Why three items? Because in terms of visual recognition of item count that’s the optimal maximum number. This has been known at least since Roman age (why do you think the Roman numbers from 1 to 3 are represented as I, II and III and 4 as IV – precisely because of that!).

Interested in getting your own copy of the JSON-RPC 2.0 Shell? Here is the link:

The other good news is that I’m planning to release the pretty JSON formatter as a separate Java library for general use. So, stay tuned until then!