proxygen
json.cpp File Reference
#include <folly/json.h>
#include <algorithm>
#include <functional>
#include <iterator>
#include <type_traits>
#include <boost/algorithm/string.hpp>
#include <folly/Conv.h>
#include <folly/Portability.h>
#include <folly/Range.h>
#include <folly/String.h>
#include <folly/Unicode.h>
#include <folly/lang/Bits.h>
#include <folly/portability/Constexpr.h>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::json
 

Functions

std::array< uint64_t, 2 > folly::json::buildExtraAsciiToEscapeBitmap (StringPiece chars)
 
std::string folly::json::serialize (dynamic const &dyn, serialization_opts const &opts)
 
template<bool EnableExtraAsciiEscapes, class T >
size_t folly::json::firstEscapableInWord (T s, const serialization_opts &opts)
 
template<bool EnableExtraAsciiEscapes>
void folly::json::escapeStringImpl (StringPiece input, std::string &out, const serialization_opts &opts)
 
void folly::json::escapeString (StringPiece input, std::string &out, const serialization_opts &opts)
 
std::string folly::json::stripComments (StringPiece jsonC)
 
dynamic folly::parseJson (StringPiece range)
 
dynamic folly::parseJson (StringPiece range, json::serialization_opts const &opts)
 
std::string folly::toJson (dynamic const &dyn)
 
std::string folly::toPrettyJson (dynamic const &dyn)
 
void folly::PrintTo (const dynamic &dyn, std::ostream *os)
 

Variable Documentation

int current_
private

Definition at line 327 of file json.cpp.

unsigned int currentRecursionLevel_ {0}
private

Definition at line 328 of file json.cpp.

Input& in_
private

Definition at line 342 of file json.cpp.

Referenced by TestData::checkIn(), TestData::getInBuf(), and TestData::TestData().

unsigned* const indentLevel_
private

Definition at line 186 of file json.cpp.

unsigned lineNum_
private

Definition at line 326 of file json.cpp.

json::serialization_opts const& opts_
private

Definition at line 187 of file json.cpp.

std::string& out_
private

Definition at line 185 of file json.cpp.

Referenced by TestData::appendOut(), and TestData::checkOut().

StringPiece range_
private

Definition at line 324 of file json.cpp.

Referenced by folly::gen::detail::ChunkedRangeSource< Iterator >::apply().