json icon indicating copy to clipboard operation
json copied to clipboard

add support for from_json/to_json member function

Open yt-sun opened this issue 3 years ago • 3 comments

add support for from_json/to_json member function. for a example:

using nlohmann::json;
class A {
private:
  int a;
public:
  void from_json(const json&){...}
  void to_json(json&) const {...}
}
void fun(){
  A a;
  json j;
  j=a;
  j.get_to(a)
}

yt-sun avatar Sep 28 '21 06:09 yt-sun

Please check the results of the CI and update to the latest develop branch.

nlohmann avatar Oct 07 '21 10:10 nlohmann

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 02:01 stale[bot]

@yt-sun Please check the results of the CI and update to the latest develop branch.

gregmarr avatar Jun 18 '22 17:06 gregmarr