How To Format Json In Vim

By admin ·
1

Paste your ugly JSON in Vim

Enter visual mode using ‘v’ and paste the ugly JSON.

2

Use Python to format the JSON

In normal mode type:

:%!python -m json.tool

Beautiful.

3

Paste your ugly JSON in Vim

Enter visual mode using ‘v’ and paste the ugly JSON.

4

Use Python to format the JSON

In normal mode type:

:%!python -m json.tool

Beautiful.

5

Paste your ugly JSON in Vim

Enter visual mode using ‘v’ and paste the ugly JSON.

6

Use Python to format the JSON

In normal mode type:

:%!python -m json.tool

Beautiful.

7

Paste your ugly JSON in Vim

Enter visual mode using ‘v’ and paste the ugly JSON.

8

Use Python to format the JSON

In normal mode type:

:%!python -m json.tool

Beautiful.

9

Paste your ugly JSON in Vim

Enter visual mode using ‘v’ and paste the ugly JSON.

10

Paste your ugly JSON in Vim

Enter visual mode using ‘v’ and paste the ugly JSON.

11

Paste your ugly JSON in Vim

12

Use Python to format the JSON

In normal mode type:

:%!python -m json.tool

Beautiful.

13

Use Python to format the JSON

In normal mode type:

:%!python -m json.tool

Beautiful.

14

Use Python to format the JSON