HDK
|
#include "pxr/pxr.h"
#include "pxr/base/js/api.h"
#include "pxr/base/js/value.h"
#include <iosfwd>
#include <string>
Go to the source code of this file.
Classes | |
struct | JsParseError |
class | JsWriter |
Functions | |
JS_API JsValue | JsParseStream (std::istream &istr, JsParseError *error=0) |
JS_API JsValue | JsParseString (const std::string &data, JsParseError *error=0) |
JS_API void | JsWriteToStream (const JsValue &value, std::ostream &ostr) |
JS_API std::string | JsWriteToString (const JsValue &value) |
Convert the JsValue value to JSON and return it as a string. More... | |
JS_API void | JsWriteValue (JsWriter *writer, const JsValue &value) |
Write a json value. More... | |
Top-level entrypoints for reading and writing JSON.
Definition in file json.h.
JS_API JsValue JsParseStream | ( | std::istream & | istr, |
JsParseError * | error = 0 |
||
) |
JS_API JsValue JsParseString | ( | const std::string & | data, |
JsParseError * | error = 0 |
||
) |
Convert the JsValue value
to JSON and write the result to output stream ostr
.
JS_API std::string JsWriteToString | ( | const JsValue & | value | ) |
Convert the JsValue value
to JSON and return it as a string.