diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-02 18:53:21 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-02 18:53:21 -0400 |
commit | aa7b0a92d065b4435467d482ec65dd97b03459ee (patch) | |
tree | 0b1c4406f4fbeea6fee2e73eaf735386c5cc1ab6 /src/components/Name.hpp | |
parent | 6614ea639414caab546091841bf920fe6459cc9e (diff) |
made json names readable
Diffstat (limited to 'src/components/Name.hpp')
-rw-r--r-- | src/components/Name.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/Name.hpp b/src/components/Name.hpp index b42ef46..a6a6d8a 100644 --- a/src/components/Name.hpp +++ b/src/components/Name.hpp @@ -40,11 +40,15 @@ public: } void serialize(cereal::JSONOutputArchive& ar) final { - ar(name); + ar(CEREAL_NVP(name)); } void serialize(cereal::JSONInputArchive& ar) final { - ar(name); + ar(CEREAL_NVP(name)); + } + + std::string serializeName(void) const final { + return "Name"; } }; |