pianod2
multisource multiuser scriptable networked music player
Namespaces | Functions
parsnip_json.cpp File Reference

Parsnip serialization. More...

#include <config.h>
#include <ios>
#include <ostream>
#include <istream>
#include <sstream>
#include <cctype>
#include "parsnip.h"
#include "parsnip_helpers.h"
Include dependency graph for parsnip_json.cpp:

Namespaces

 Parsnip
 Serialization and parsing library.
 

Functions

static void Parsnip::json_encode_string (std::ostream &target, const std::string &value)
 Write a string to a stream, literal-encoding special characters. More...
 
std::istream::int_type Parsnip::next_non_whitespace (InputStream &from)
 Read from a stream until a non-whitespace character is found. More...
 
static void Parsnip::require_character (InputStream &from, std::istream::int_type expect)
 Verify the next non-whitespace character in a stream is what's expected. More...
 
static int Parsnip::parse_hex_digits (InputStream &from, int count)
 Parse hexadecimal digits from a stream. More...
 
static const std::string Parsnip::parse_json_string (InputStream &from, const char quote)
 Parse a string out of a JSON stream. More...
 
static Data Parsnip::parse_json_inline_text (InputStream &from)
 Parse a keyword out of a JSON string. More...
 
static Data Parsnip::parse_json_inline_value (InputStream &from)
 Parse a numeric value in a JSON stream. More...
 
static Data Parsnip::parse_json_element (InputStream &from)
 Extract data from a JSON stream. More...
 
static Data Parsnip::parse_json_dictionary (InputStream &from)
 Parse a JSON dictionary from a stream. More...
 
static Data Parsnip::parse_json_list (InputStream &from)
 Parse a list from a JSON stream. More...
 
Data Parsnip::parse_json (std::istream &from, bool check_termination)
 Parse a stream as JSON data. More...
 
Data Parsnip::parse_json (const std::string &from)
 Parse a string as a JSON stream. More...
 

Detailed Description

Parsnip serialization.

Serialization and parsing for JSON protocol.