millijson
Lightweight JSON parser for C++
Loading...
Searching...
No Matches
millijson::Object Class Referencefinal

JSON object. More...

#include <millijson.hpp>

Inheritance diagram for millijson::Object:
Collaboration diagram for millijson::Object:

Public Member Functions

 Object (std::unordered_map< std::string, std::shared_ptr< Base > > x)
 
Type type () const
 
const std::unordered_map< std::string, std::shared_ptr< Base > > & value () const
 
std::unordered_map< std::string, std::shared_ptr< Base > > & value ()
 
- Public Member Functions inherited from millijson::Base

Detailed Description

JSON object.

Constructor & Destructor Documentation

◆ Object()

millijson::Object::Object ( std::unordered_map< std::string, std::shared_ptr< Base > > x)
inline
Parameters
xKey-value pairs of the object.

Member Function Documentation

◆ type()

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

Implements millijson::Base.

◆ value() [1/2]

std::unordered_map< std::string, std::shared_ptr< Base > > & millijson::Object::value ( )
inline
Returns
Key-value pairs of the object.

◆ value() [2/2]

const std::unordered_map< std::string, std::shared_ptr< Base > > & millijson::Object::value ( ) const
inline
Returns
Key-value pairs of the object.

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