Skip to content

Parse json into specified descendant class #3656

@vmato

Description

@vmato

Is it possible to parse json into specified descendant class?

std::string json = "{ \"name\" : \"Franky\" }"

class Person : Poco::JSON::Object {
// ...
}

Person p = ???(json);

I've seen handlers but didn't find any explicit way to override JSON::Object creation

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions