KPN Things Device SDK
senml_jsonstreamingparser.h File Reference
#include "defaults.h"
#include "senml_jsonlistener.h"

Go to the source code of this file.

Data Structures

class  JsonStreamingParser
 

Macros

#define STATE_START_DOCUMENT   0
 
#define STATE_DONE   -1
 
#define STATE_IN_ARRAY   1
 
#define STATE_IN_OBJECT   2
 
#define STATE_END_KEY   3
 
#define STATE_AFTER_KEY   4
 
#define STATE_IN_STRING   5
 
#define STATE_START_ESCAPE   6
 
#define STATE_UNICODE   7
 
#define STATE_IN_NUMBER   8
 
#define STATE_IN_TRUE   9
 
#define STATE_IN_FALSE   10
 
#define STATE_IN_NULL   11
 
#define STATE_AFTER_VALUE   12
 
#define STATE_UNICODE_SURROGATE   13
 
#define STACK_OBJECT   0
 
#define STACK_ARRAY   1
 
#define STACK_KEY   2
 
#define STACK_STRING   3
 
#define BUFFER_MAX_LENGTH   512
 

Macro Definition Documentation

◆ BUFFER_MAX_LENGTH

#define BUFFER_MAX_LENGTH   512

◆ STACK_ARRAY

#define STACK_ARRAY   1

◆ STACK_KEY

#define STACK_KEY   2

◆ STACK_OBJECT

#define STACK_OBJECT   0

◆ STACK_STRING

#define STACK_STRING   3

◆ STATE_AFTER_KEY

#define STATE_AFTER_KEY   4

◆ STATE_AFTER_VALUE

#define STATE_AFTER_VALUE   12

◆ STATE_DONE

#define STATE_DONE   -1

◆ STATE_END_KEY

#define STATE_END_KEY   3

◆ STATE_IN_ARRAY

#define STATE_IN_ARRAY   1

◆ STATE_IN_FALSE

#define STATE_IN_FALSE   10

◆ STATE_IN_NULL

#define STATE_IN_NULL   11

◆ STATE_IN_NUMBER

#define STATE_IN_NUMBER   8

◆ STATE_IN_OBJECT

#define STATE_IN_OBJECT   2

◆ STATE_IN_STRING

#define STATE_IN_STRING   5

◆ STATE_IN_TRUE

#define STATE_IN_TRUE   9

◆ STATE_START_DOCUMENT

#define STATE_START_DOCUMENT   0

The MIT License (MIT)

Copyright (c) 2015 by Daniel Eichhorn

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

See more at http://blog.squix.ch and https://github.com/squix78/json-streaming-parser

◆ STATE_START_ESCAPE

#define STATE_START_ESCAPE   6

◆ STATE_UNICODE

#define STATE_UNICODE   7

◆ STATE_UNICODE_SURROGATE

#define STATE_UNICODE_SURROGATE   13