millijson
Lightweight JSON parser for C++
Loading...
Searching...
No Matches
millijson::Array Struct Reference

JSON array. More...

#include <millijson.hpp>

Inheritance diagram for millijson::Array:
Collaboration diagram for millijson::Array:

Public Member Functions

Type type () const
 
void add (std::shared_ptr< Base > value)
 
- Public Member Functions inherited from millijson::Base
double get_number () const
 
const std::string & get_string () const
 
bool get_boolean () const
 
const std::unordered_map< std::string, std::shared_ptr< Base > > & get_object () const
 
const std::vector< std::shared_ptr< Base > > & get_array () const
 

Public Attributes

std::vector< std::shared_ptr< Base > > values
 

Detailed Description

JSON array.

Member Function Documentation

◆ add()

void millijson::Array::add ( std::shared_ptr< Base > value)
inline
Parameters
valueValue to append to the array.

◆ type()

Type millijson::Array::type ( ) const
inlinevirtual
Returns
Type of the JSON value.

Implements millijson::Base.

Member Data Documentation

◆ values

std::vector<std::shared_ptr<Base> > millijson::Array::values

Contents of the array.


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