JsoNeat
Some JSON parse/iterate C++ classes build on top of Jsmn
Loading...
Searching...
No Matches
jsoneat::JsoNeat< input_type > Class Template Reference

Parse JSON into tokens and iterate over it. Will handle all allocations. More...

#include </home/bertw/proj/mcu/libs/mbed-jsoneat/components/jsoneat/include/jsoneat/jsoneat.hh>

Inheritance diagram for jsoneat::JsoNeat< input_type >:
Collaboration diagram for jsoneat::JsoNeat< input_type >:

Classes

class  Iterator
 This has iterator functionality, but also provides lots of token related member functions. More...
 

Public Member Functions

 JsoNeat (input_type json, unsigned tok_max)
 
 operator bool () const
 
input_type get_json ()
 get json buffer passed to ctor
 
Iterator begin ()
 get JSON root object iterator
 
Iterator end ()
 get JSON root object end iterator
 

Protected Member Functions

 JsoNeat (input_type json, jsmntok_t *tok, unsigned tok_max)
 

Detailed Description

template<typename input_type = const char*>
class jsoneat::JsoNeat< input_type >

Parse JSON into tokens and iterate over it. Will handle all allocations.

Template Parameters
input_typetype of JSON input buffer. should be char* or const char*

Member Function Documentation

◆ begin()

template<typename input_type = const char*>
Iterator jsoneat::JsoNeat< input_type >::begin ( )
inline

get JSON root object iterator

Returns
iterator pointing to root object

◆ end()

template<typename input_type = const char*>
Iterator jsoneat::JsoNeat< input_type >::end ( )
inline

get JSON root object end iterator

Returns
iterator pointing one behind root object

◆ get_json()

template<typename input_type = const char*>
input_type jsoneat::JsoNeat< input_type >::get_json ( )
inline

get json buffer passed to ctor

Returns
pointer to json text buffer

The documentation for this class was generated from the following file: