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

Feature/to json #12

Merged
merged 15 commits into from
Dec 13, 2019
Merged

Feature/to json #12

merged 15 commits into from
Dec 13, 2019

Conversation

jlconlin
Copy link
Member

@jlconlin jlconlin commented Dec 5, 2019

Adding capability to convert RECONR to JSON representation.

@jlconlin jlconlin requested a review from whaeck December 5, 2019 15:04
}

inline void to_json( nlohmann::json& JSON, const RECONR::Card6& card6 ) {
JSON = { { "enode", card6.enode.value } };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the actual name that the NJOY manual gives these values? I would use that instead. You do it everywhere else

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind.

"cards": [ "Another sample for Card5" ],
"enode": [ ]
}
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot nicer!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it is nicer.

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

Successfully merging this pull request may close these issues.

2 participants