folly::json::stripComments

Strip all C99-like comments (i.e. // and / * ... * /)

Synopsis

Declared in <folly/json/json.h>

std::string
stripComments(StringPiece jsonC);

Return Value

The JSON text with comments removed.

Parameters

NameDescription
jsonCThe JSON text possibly containing comments.