This file contains the implementation of "A Ridiculously Simple JSON Parser for C++." This great parsing class was taken from http://subhrajit.net/.
More...
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <unordered_map>
#include <utility>
#include <iostream>
#include <climits>
Go to the source code of this file.
This file contains the implementation of "A Ridiculously Simple JSON Parser for C++." This great parsing class was taken from http://subhrajit.net/.
- Author
- Subhrajit Bhattacharya (http://subhrajit.net/)
- Date
- 2018
- Version
- 2.x
- See also
- main.cpp Driver.hpp
◆ rsjArray
◆ rsjAs
#define rsjAs |
( |
|
t | ) |
as<t>() |
◆ rsjObject
◆ RSJarray
◆ RSJobject
◆ RSJresourceType
Enumerator |
---|
RSJ_UNINITIATED | |
RSJ_UNKNOWN | |
RSJ_OBJECT | |
RSJ_ARRAY | |
RSJ_LEAF | |
◆ StrTrimDir
Enumerator |
---|
STRTRIM_L | |
STRTRIM_R | |
STRTRIM_LR | |
◆ insert_tab_after_newlines()
std::string insert_tab_after_newlines |
( |
std::string |
str | ) |
|
|
inline |
◆ is_bracket()
int is_bracket |
( |
char |
c, |
|
|
std::vector< char const *> & |
bracks, |
|
|
int |
indx = 0 |
|
) |
| |
|
inline |
◆ RSJresource::as< std::string >()
◆ seek_next()
int seek_next |
( |
std::string * |
str_p, |
|
|
int |
start_pos, |
|
|
char |
character |
|
) |
| |
|
inline |
◆ split_RSJ_array()
std::vector<std::string> split_RSJ_array |
( |
const std::string & |
str | ) |
|
|
inline |
◆ strip_outer_quotes()
std::string strip_outer_quotes |
( |
std::string |
str, |
|
|
char * |
qq = NULL |
|
) |
| |
|
inline |
◆ strtrim()
std::string strtrim |
( |
std::string |
str, |
|
|
std::string |
chars = " \t\n\r" , |
|
|
int |
max_count = -1 , |
|
|
StrTrimDir |
dirs = STRTRIM_LR |
|
) |
| |
|
inline |
◆ to_string()
◆ RSJarraybrackets
char const* RSJarraybrackets = "[]" |
|
static |
◆ RSJarraydelimiter
char RSJarraydelimiter = ',' |
|
static |
◆ RSJbrackets
◆ RSJcharescape
char RSJcharescape = '\\' |
|
static |
◆ RSJlinecommentstart
std::string RSJlinecommentstart = "//" |
|
static |
◆ RSJobjectassignment
char RSJobjectassignment = ':' |
|
static |
◆ RSJobjectbrackets
char const* RSJobjectbrackets = "{}" |
|
static |
◆ RSJprinttab
std::string RSJprinttab = " " |
|
static |
◆ RSJstringquotes
std::vector<char const*> RSJstringquotes = {"\"\"", "''"} |
|
static |