mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
#3237: An error in the documentation for Poco/JSON/Parser.h
This commit is contained in:
@@ -58,9 +58,9 @@ class JSON_API Parser: private ParserImpl
|
|||||||
/// std::string json = "{ \"name\" : \"Franky\", \"children\" : [ \"Jonas\", \"Ellen\" ] }";
|
/// std::string json = "{ \"name\" : \"Franky\", \"children\" : [ \"Jonas\", \"Ellen\" ] }";
|
||||||
/// Parser parser;
|
/// Parser parser;
|
||||||
/// Var result = parser.parse(json);
|
/// Var result = parser.parse(json);
|
||||||
/// Object::Ptr object = result.extract<Object::Ptr>();
|
/// Object::Ptr pObject = result.extract<Object::Ptr>();
|
||||||
/// std::string name = object.getValue<std::string>("name");
|
/// std::string name = pObject->getValue<std::string>("name");
|
||||||
/// Array::Ptr children = object.getArray("children");
|
/// Array::Ptr pChildren = pObject->getArray("children");
|
||||||
/// ----
|
/// ----
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user