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

How to create JSON Object from my Structures of Data and Json File from that Object #1726

Closed
GaneshJeevaa opened this issue Aug 27, 2019 · 1 comment
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@GaneshJeevaa
Copy link

GaneshJeevaa commented Aug 27, 2019

I have structures as follows,

  struct Lel1
{
  string Title;
  struct Lel2 ns;
};
  struct Lel2
{
  string name;
};

I need to export tho one into json file.

can anyone help?

__

C.G

@nlohmann
Copy link
Owner

Please check https://github.com/nlohmann/json#arbitrary-types-conversions - there, it is described how to translate arbitrary types to and from JSON.

@nlohmann nlohmann added the solution: proposed fix a fix for the issue has been proposed and waits for confirmation label Aug 27, 2019
@nlohmann nlohmann closed this as completed Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants