MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Functions
json.cpp File Reference

Holds all JSON-related code. More...

#include "json.h"
#include "defines.h"
#include <sstream>
#include <fstream>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <arpa/inet.h>

Functions

static char c2hex (char c)
 
static char hex2c (char c)
 
static std::string read_string (int separator, std::istream &fromstream)
 
static void skipToEnd (std::istream &fromstream)
 Skips an std::istream forward until any of the following characters is seen: ,]}. More...
 
static std::string string_escape (const std::string val)
 

Detailed Description

Holds all JSON-related code.

Function Documentation

static char c2hex ( char  c)
inlinestatic
static char hex2c ( char  c)
inlinestatic
static std::string read_string ( int  separator,
std::istream &  fromstream 
)
static
static void skipToEnd ( std::istream &  fromstream)
static

Skips an std::istream forward until any of the following characters is seen: ,]}.

static std::string string_escape ( const std::string  val)
static