I use PHPstorm IDE and would like to find a plugin to format JSON so that it is easier for me to read.
Currently I have this in a file displayed in the IDE:
{"property":"value1","property2":"value2","array1":[{"attr1":"value1"},{"attr2":"value2"}]}
I would like a plugin I can run so that I can look at this instead:
{
"property": "value1",
"property2": "value2",
"array1": [
{
"attr1": "value1"
},{
"attr2": "value2"
}
]
}
I found the following plugin, but it does not seem to work with PHPStorm : http://plugins.jetbrains.com/plugin/3964?pr=
It is possibly because I'm new to PHPStorm, but the option in the menu Code -> Reformat Code (CTRL + ALT + L) does the job fine in a .json file
, and goes an ok job in a .js file
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With