-
Notifications
You must be signed in to change notification settings - Fork 12
Unnamed objects support #11
Copy link
Copy link
Open
Labels
Description
Hi!
Your example
class JSONExample
{
public:
std::string text;
...
}
Serializes into {"JSONExample":{"text":"Hello JSON World"}}. Is it possible to serialize them into just
{"text":"Hello JSON World"} ? Suppose I need to serialize a vector of JSONExample instances, so after serialization I'd like to have:
[{"text":"Hello JSON World 1"}, {"text":"Hello JSON World 2"}]
Reactions are currently unavailable