Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 437 Bytes

File metadata and controls

18 lines (14 loc) · 437 Bytes

Colorized and Formatted JSON

A Go program that takes any valid JSON as input (from standard input) and outputs (to standard output) HTML that transforms the JSON so that all tokens are consistently colored and the formatting is clean and consistent.

Example

Input JSON fragment:

{"s":[2, 3], "a < b && a >= c":true}

Output view:

{
  "s" : [2, 3],
  "a < b && a >= c" : true
}