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

Newline before closing brace in json output #62

Closed
afengler opened this issue Oct 11, 2018 · 2 comments
Closed

Newline before closing brace in json output #62

afengler opened this issue Oct 11, 2018 · 2 comments
Assignees
Labels

Comments

@afengler
Copy link

afengler commented Oct 11, 2018

libxo seems to be creating a newline before the last closing brace when doing non-pretty json output:

% uptime --libxo json
{"uptime-information": {"time-of-day":" 5:03PM","uptime":25201,"days":0,"hours":7,"minutes":0,"seconds":31,"uptime-human":" 7 hrs,","users":9,"load-average-1":0.41,"load-average-5":0.36,"load-average-15":0.34}
}

This is manifesting on all libxo tools I've tested on multiple versions of FreeBSD, up to 12-ALPHA6

@philshafer philshafer self-assigned this Oct 12, 2018
@philshafer philshafer added the bug label Oct 12, 2018
@philshafer
Copy link
Contributor

Yes; easily duplicated. Thanks...

@philshafer
Copy link
Contributor

Fixed in the "develop" branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants