MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / GetCompressedJson

Method GetCompressedJson

src/NppJsonViewer/JsonHandler.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14auto JsonHandler::GetCompressedJson(const std::string& jsonText) -> const Result
15{
16 rj::StringBuffer sb;
17 rj::Writer<rj::StringBuffer, rj::UTF8<>, rj::UTF8<>, rj::CrtAllocator, rj::kWriteNanAndInfFlag> handler(sb);
18
19 return ParseJson<flgBaseWriter>(jsonText, sb, handler);
20}
21
22auto JsonHandler::FormatJson(const std::string& jsonText, LE le, LF lf, char indentChar, unsigned indentLen) -> const Result
23{

Callers 4

CompressJsonMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64