mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 14:39:53 +01:00
#3237: An error in the documentation for Poco/JSON/Parser.h
This commit is contained in:
parent
8bf57d48e0
commit
b00e82977f
@ -35,9 +35,9 @@ namespace JSON {
|
||||
|
||||
class JSON_API Parser: private ParserImpl
|
||||
/// A parser for reading RFC 4627 compliant JSON from strings or streams.
|
||||
///
|
||||
///
|
||||
/// Simple usage example:
|
||||
///
|
||||
///
|
||||
/// std::string json = "{ \"name\" : \"Franky\", \"children\" : [ \"Jonas\", \"Ellen\" ] }";
|
||||
/// Parser parser;
|
||||
/// Var result = parser.parse(json);
|
||||
@ -54,13 +54,13 @@ class JSON_API Parser: private ParserImpl
|
||||
/// containing a Poco::SharedPtr to an Object or Array instance.
|
||||
///
|
||||
/// Example:
|
||||
///
|
||||
///
|
||||
/// std::string json = "{ \"name\" : \"Franky\", \"children\" : [ \"Jonas\", \"Ellen\" ] }";
|
||||
/// Parser parser;
|
||||
/// Var result = parser.parse(json);
|
||||
/// Object::Ptr object = result.extract<Object::Ptr>();
|
||||
/// std::string name = object.getValue<std::string>("name");
|
||||
/// Array::Ptr children = object.getArray("children");
|
||||
/// Object::Ptr pObject = result.extract<Object::Ptr>();
|
||||
/// std::string name = pObject->getValue<std::string>("name");
|
||||
/// Array::Ptr pChildren = pObject->getArray("children");
|
||||
/// ----
|
||||
{
|
||||
public:
|
||||
@ -81,9 +81,9 @@ public:
|
||||
/// Returns true if comments are allowed, false otherwise.
|
||||
///
|
||||
/// By default, comments are not allowed.
|
||||
|
||||
|
||||
void setAllowNullByte(bool nullByte);
|
||||
/// Allow or disallow null byte in strings.
|
||||
/// Allow or disallow null byte in strings.
|
||||
///
|
||||
/// By default, null byte is allowed.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user