webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Outputs a Value in JSON format without formatting (not human friendly). More...
#include <writer.h>
Public Member Functions | |
FastWriter () | |
virtual | ~FastWriter () |
void | enableYAMLCompatibility () |
virtual std::string | write (const Value &root) |
FastWriter () | |
~FastWriter () override | |
void | enableYAMLCompatibility () |
void | dropNullPlaceholders () |
Drop the "null" string from the writer's output for nullValues. Strictly speaking, this is not valid JSON. But when the output is being fed to a browser's Javascript, it makes for smaller output and the browser can handle the output just fine. More... | |
void | omitEndingLineFeed () |
std::string | write (const Value &root) override |
Public Member Functions inherited from Json::Writer | |
virtual | ~Writer () |
virtual | ~Writer () |
Outputs a Value in JSON format without formatting (not human friendly).
The JSON document is written in a single line. It is not intended for 'human' consumption, but may be usefull to support feature such as RPC where bandwith is limited.
The JSON document is written in a single line. It is not intended for 'human' consumption, but may be usefull to support feature such as RPC where bandwith is limited.
Json::FastWriter::FastWriter | ( | ) |
|
inlinevirtual |
Json::FastWriter::FastWriter | ( | ) |
|
inlineoverride |
void Json::FastWriter::dropNullPlaceholders | ( | ) |
Drop the "null" string from the writer's output for nullValues. Strictly speaking, this is not valid JSON. But when the output is being fed to a browser's Javascript, it makes for smaller output and the browser can handle the output just fine.
void Json::FastWriter::enableYAMLCompatibility | ( | ) |
void Json::FastWriter::enableYAMLCompatibility | ( | ) |
void Json::FastWriter::omitEndingLineFeed | ( | ) |
|
virtual |
Implements Json::Writer.
|
overridevirtual |
Implements Json::Writer.