TSDuck Version 3.18-1208 (TSDuck - The MPEG Transport Stream Toolkit)
tsjson.h File Reference

Simple and basic implementation of a JSON value. More...

Namespaces

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 
 ts::json
 Namespace for JSON (JavaScript Object Notation) classes.
 

Typedefs

typedef SafePtr< Value, NullMutex > ts::json::ValuePtr
 Smart pointer to a JSON value (not thread-safe).
 

Enumerations

enum  ts::json::Type {
  ts::json::TypeNull,
  ts::json::TypeTrue,
  ts::json::TypeFalse,
  ts::json::TypeString,
  ts::json::TypeNumber,
  ts::json::TypeObject,
  ts::json::TypeArray
}
 Definition of the type of a value. More...
 

Functions

bool ts::json::Parse (ValuePtr &value, const UStringList &lines, Report &report=(*ts::NullReport::Instance()))
 Parse a JSON value (typically an object or array. More...
 
bool ts::json::Parse (ValuePtr &value, const UString &text, Report &report=(*ts::NullReport::Instance()))
 Parse a JSON value (typically an object or array. More...
 
bool ts::json::Parse (ValuePtr &value, TextParser &parser, bool jsonOnly, Report &report=(*ts::NullReport::Instance()))
 Parse a JSON value (typically an object or array. More...
 

Detailed Description

Simple and basic implementation of a JSON value.