TSDuck Version 3.15-955 (TSDuck - The MPEG Transport Stream Toolkit)
tsjson.h File Reference

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

Classes

class  ts::json::Array
 Implementation of a JSON array. More...
 
class  ts::json::False
 Implementation of a JSON false literal. More...
 
class  ts::json::Null
 Implementation of a JSON null literal. More...
 
class  ts::json::Number
 Implementation of a JSON number. More...
 
class  ts::json::Object
 Implementation of a JSON object. More...
 
class  ts::json::String
 Implementation of a JSON string. More...
 
class  ts::json::True
 Implementation of a JSON true literal. More...
 
class  ts::json::Value
 Abstract base class 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...
 

Variables

const Null ts::json::NullValue
 A general-purpose constant null JSON value.
 

Detailed Description

Simple and basic implementation of a JSON value.