Outputs a Value in JSON format without formatting (not human friendly).
More...
#include <json.h>
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 useful to support feature such as RPC where bandwidth is limited.
- See also
- Reader, Value
- Deprecated:
- Use StreamWriterBuilder.
◆ FastWriter()
| Json::FastWriter::FastWriter |
( |
| ) |
|
◆ ~FastWriter()
| virtual Json::FastWriter::~FastWriter |
( |
| ) |
|
|
inlinevirtual |
◆ dropNullPlaceholders()
| 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.
◆ enableYAMLCompatibility()
| void Json::FastWriter::enableYAMLCompatibility |
( |
| ) |
|
◆ omitEndingLineFeed()
| void Json::FastWriter::omitEndingLineFeed |
( |
| ) |
|
◆ write()
| virtual std::string Json::FastWriter::write |
( |
const Value & |
root | ) |
|
|
virtual |
◆ writeValue()
| void Json::FastWriter::writeValue |
( |
const Value & |
value | ) |
|
|
private |
◆ document_
| std::string Json::FastWriter::document_ |
|
private |
◆ dropNullPlaceholders_
| bool Json::FastWriter::dropNullPlaceholders_ |
|
private |
◆ omitEndingLineFeed_
| bool Json::FastWriter::omitEndingLineFeed_ |
|
private |
◆ yamlCompatiblityEnabled_
| bool Json::FastWriter::yamlCompatiblityEnabled_ |
|
private |
The documentation for this class was generated from the following file:
- src/visualization/ParaViewCatalystIossAdapter/parser/jsoncpp-master/dist/json/json.h