Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty print object in arrays #3191

Merged
merged 1 commit into from
Mar 4, 2015
Merged

Pretty print object in arrays #3191

merged 1 commit into from
Mar 4, 2015

Conversation

Filirom1
Copy link
Contributor

Hi,

Currently object in arrays are presented like this:

 ["{\"Name\":\"eth0\",\"MAC\":\"00:16:3E:5A:D5:BB\",\"IP\":\"10.95.21.127\",\"Netmask\":\"255.255.254.0\"}","{\"Name\":\"eth1\",\"MAC\":\"00:16:3E:5A:D4:BB\",\"IP\":\"10.97.128.137\",\"Netmask\":\"255.255.254.0\"}", ...

I think it would be better to show it as a pretty JSON

[
  {
    "Name": "eth0",
    "MAC": "00:16:3E:1A:28:47",
    "IP": "10.26.89.23",
    "Netmask": "255.255.255.192"
  },
  {
    "Name": "eth1",
    "MAC": "00:16:3E:1C:11:B8",
    "IP": "10.18.29.72",
    "Netmask": "255.255.255.192"
  },

This is what this PR is doing.

Cheers

@rashidkpc
Copy link
Contributor

Thanks for the contribution, before we can review this pull request we'll need you to sign the Contributor License Agreement. Please see CONTRIBUTING.md for the entire contribution process.

@Filirom1
Copy link
Contributor Author

Filirom1 commented Mar 2, 2015

CLA signed ;-)

@rashidkpc rashidkpc self-assigned this Mar 2, 2015
rashidkpc added a commit that referenced this pull request Mar 4, 2015
Pretty print object in arrays
@rashidkpc rashidkpc merged commit 68f9783 into elastic:master Mar 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants