Given ugly json like data these programs add the proper tabs and line returns for nice formatting. Based on code https://tools.arantius.com/tabifier
Given input like this(A nested dictionary priettyprinted with pprint in python):
{ 'name': '?',
'path': '?',
'hostname': 'B1-C1',
'interfaces': [ { 'hw-id': '00:50:56:b9:76:04',
'ip': '10.1.2.1/24',
'name': 'eth1',
'vlan': '?'},
{ 'hw-id': '00:50:56:b9:08:68',
'ip': '50.1.1.1/16',
'name': 'eth2',
'vlan': '?'},
{ 'hw-id': '00:50:56:b9:16:85',
'ip': '10.1.50.1/24',
'name': 'eth3',
'vlan': '?'},
{ 'hw-id': '00:50:56:b9:4e:c7',
'ip': '10.1.1.1/24',
'name': 'eth0',
'vlan': '?'}],
'configure': {'netflow': '?', 'ospf': '?'}}]Theese programs give output like this:
[
{
'name': '?',
'path': '?',
'hostname': 'B1-C1',
'interfaces': [
{
'hw-id': '00:50:56:b9:76:04',
'ip': '10.1.2.1/24',
'name': 'eth1',
'vlan': '?'
},
{
'hw-id': '00:50:56:b9:08:68',
'ip': '50.1.1.1/16',
'name': 'eth2',
'vlan': '?'
},
{
'hw-id': '00:50:56:b9:16:85',
'ip': '10.1.50.1/24',
'name': 'eth3',
'vlan': '?'
},
{
'hw-id': '00:50:56:b9:4e:c7',
'ip': '10.1.1.1/24',
'name': 'eth0',
'vlan': '?'
}
],
'configure': {
'netflow': '?',
'ospf': '?'
}
}
]