#pragma once #include "primitive.hpp" namespace json { class String final : public Primitive { public: String() {} String(const std::string& value) : Primitive(value) {} virtual bool is_string() const; virtual operator std::string() const; }; bool String::is_string() const { return true; } String::operator std::string() const { return "\"" + value + "\""; } }