Stan  2.10.0
probability, sampling & optimization
Classes | Functions
stan::json Namespace Reference

Classes

class  json_data
 A json_data is a var_context object that represents a set of named values which are typed to either double or int and can be either scalar value or a non-empty array of values of any dimensionality. More...
 
class  json_data_handler
 A json_data_handler is an implementation of a json_handler that restricts the allowed JSON text a set of Stan variable declarations in JSON format. More...
 
struct  json_error
 Exception type for JSON errors. More...
 
class  json_handler
 Abstract base class for JSON handlers. More...
 

Functions

template<bool Validate_UTF_8, typename Handler >
void parse (std::istream &in, Handler &handler)
 Parse the JSON text represented by the specified input stream, sending events to the specified handler, and optionally validating the UTF-8 encoding. More...
 
template<typename Handler >
void parse (std::istream &in, Handler &handler)
 Parse the JSON text represented by the specified input stream, sending events to the specified handler, and optionally validating the UTF-8 encoding. More...
 

Function Documentation

template<bool Validate_UTF_8, typename Handler >
void stan::json::parse ( std::istream &  in,
Handler &  handler 
)

Parse the JSON text represented by the specified input stream, sending events to the specified handler, and optionally validating the UTF-8 encoding.

Template Parameters
Validate_UTF_8
Handler
Parameters
inInput stream from which to parse
handlerHandler for events from parser

Definition at line 433 of file json_parser.hpp.

template<typename Handler >
void stan::json::parse ( std::istream &  in,
Handler &  handler 
)

Parse the JSON text represented by the specified input stream, sending events to the specified handler, and optionally validating the UTF-8 encoding.

Template Parameters
Handler
Parameters
inInput stream from which to parse
handlerHandler for events from parser

Definition at line 448 of file json_parser.hpp.


     [ Stan Home Page ] © 2011–2016, Stan Development Team.