oos::json_parser Class Reference
Parse a json formatted stream or string. More...
#include <json_parser.hpp>
Inherits oos::generic_json_parser< json_parser >.
Public Member Functions | |
json_parser () | |
json_value | parse (std::istream &in) |
parse an input stream. More... | |
json_value | parse (const char *str) |
parse a const character string. More... | |
json_value | parse (std::string &str) |
parse a std::string. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from oos::generic_json_parser< json_parser > | |
generic_json_parser (json_parser *h) | |
void | parse_json (std::istream &in) |
Parse the json input stream. More... | |
Detailed Description
Parse a json formatted stream or string.
This class parse a given input stream or string into a json object representation. The result will be a oos::json_value object.
Constructor & Destructor Documentation
oos::json_parser::json_parser | ( | ) |
Creates a new json_parser instance
Member Function Documentation
json_value oos::json_parser::parse | ( | std::istream & | in | ) |
parse an input stream.
Parses an input stream and returns a json_value object representing the json structure.
- Parameters
-
in The json input stream.
- Returns
- A json_value structure.
json_value oos::json_parser::parse | ( | const char * | str | ) |
parse a const character string.
Parses a const character string and returns a json_value object representing the json structure.
- Parameters
-
str The json const character string.
- Returns
- A json_value structure.
json_value oos::json_parser::parse | ( | std::string & | str | ) |
parse a std::string.
Parses a std::string and returns a json_value object representing the json structure.
- Parameters
-
str The json std::string.
- Returns
- A json_value structure.
The documentation for this class was generated from the following file:
- json/json_parser.hpp