Alternative layout for a pretty printed JSON string structure?

I'm interested in tools (in general) for beautiful JSON printing to a layout / layout structure that is not standard.

I ask this because I create barely readable lines of 10 lines long by JSON that highlight several layers in long lists when they are printed in the standard format that any beautiful printer uses.

Thus, it would be very useful to semi-compactly derive text from the standard, for example:

{
  "currency":"USD",
  "total_profit":600,
  "float_money":500,
  "net_income":1200,
  "inventory":[
    {
      "dog food":100,
      "price":2
    },
    {
      "cat food":100,
      "price":3
    }
  ],
  "sold_stock":[
    {
      "dog food":100
    },
    {
      "cat food":100
    }
  ]
}

Something may be a little more like this ---

{
    "currency":"USD",
    "total_profit":600,
    "float_money":500,
    "net_income":1200,
    "inventory":[
        { "dog food":100, "price":2 },
        { "cat food":100, "price":3 }
    ],
    "sold_stock":[
       { "dog food":100 },
       { "cat food":100 }
    ]
}

, JSON, , . . , , , , , (, IDE).

, // .

- , - - , ?

+4

Source: https://habr.com/ru/post/1611396/


All Articles