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

Output and input matrix #1544

Closed
pianonyy opened this issue Mar 23, 2019 · 4 comments
Closed

Output and input matrix #1544

pianonyy opened this issue Mar 23, 2019 · 4 comments

Comments

@pianonyy
Copy link

Hello! How can I input or output matrix in the JSON file?

@nlohmann
Copy link
Owner

In order to asses your issue, we need the following information:

  • What is the issue you have?

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

  • What is the expected behavior?

  • And what is the actual behavior instead?

  • Which compiler and operating system are you using? Is it a supported compiler?

  • Did you use a released version of the library or the version from the develop branch?

  • If you experience a compilation error: can you compile and run the unit tests?

@pianonyy
Copy link
Author

I just want to do this one:(example on the photo)
Снимок экрана от 2019-03-24 09-49-39
But I only can do it with a lot of space, like this:
stdout:
Снимок экрана от 2019-03-24 09-54-54
my working code:
Снимок экрана от 2019-03-24 09-55-58
Снимок экрана от 2019-03-24 10-02-00

How can I change this situation?
my operating system: Ubuntu 18.04, g++ compiler
thank you for feedback!

@nlohmann
Copy link
Owner

This kind of pretty-printing is not possible. You can try j.dump() for a compact representation or j.dump(2) (or any other integer) for indented output.

@pianonyy
Copy link
Author

thanks for your quick reply!

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

No branches or pull requests

2 participants