#include <JSONObject.h>
 | 
| virtual std::shared_ptr< JSONElement >  | getProperty (const std::string &propertyName) const=0 | 
|   | Returns object property by name.  
  | 
|   | 
| virtual bool  | hasProperty (const std::string &propertyName) const=0 | 
|   | Checks if the object has a property with given name.  
  | 
|   | 
| virtual std::shared_ptr< JSONElement >  | removeProperty (const std::string &propertyName)=0 | 
|   | Removes property from this object.  
  | 
|   | 
| virtual const std::map< std::string, std::shared_ptr< JSONElement > > &  | getProperties () const=0 | 
|   | Returns all properties of this object.  
  | 
|   | 
| virtual enum Type  | getType () const =0 | 
|   | Returns type of this element.  
  | 
|   | 
| virtual std::string  | asString () const =0 | 
|   | Returns string representation of this element.  
  | 
|   | 
| bool  | isArray () const | 
|   | Utility to check if this element is JSONArray.  
  | 
|   | 
| bool  | isBoolean () const | 
|   | Utility to check if this element is JSONBoolean.  
  | 
|   | 
| bool  | isNull () const | 
|   | Utility to check if this element is null.  
  | 
|   | 
| bool  | isNumber () const | 
|   | Utility to check if this element is JSONNumber.  
  | 
|   | 
| bool  | isObject () const | 
|   | Utility to check if this element is JSONObject.  
  | 
|   | 
| bool  | isString () const | 
|   | Utility to check if this element is JSONString.  
  | 
|   | 
| bool  | isUndefined () const | 
|   | Utility to check if this element is undefined.  
  | 
|   | 
 | 
| enum   | Type {  
  UNDEFINED
, NULLISH
, OBJECT
, ARRAY
,  
  NUMBER
, STRING
, BOOLEAN
 
 } | 
|   | Type of the element. 
  | 
|   | 
| static std::string  | typeToString (const enum Type type) | 
|   | Converts the type to string.  
  | 
|   | 
◆ getProperties()
  
  
      
        
          | virtual const std::map< std::string, std::shared_ptr< JSONElement > > & tenduke::json::JSONObject::getProperties  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Returns all properties of this object. 
- Returns
 - - 
 
 
 
◆ getProperty()
  
  
      
        
          | virtual std::shared_ptr< JSONElement > tenduke::json::JSONObject::getProperty  | 
          ( | 
          const std::string & |           propertyName | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Returns object property by name. 
- Parameters
 - 
  
  
 
- Returns
 - the property. Returns 
null if no such property.  
 
 
◆ hasProperty()
  
  
      
        
          | virtual bool tenduke::json::JSONObject::hasProperty  | 
          ( | 
          const std::string & |           propertyName | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Checks if the object has a property with given name. 
- Parameters
 - 
  
  
 
- Returns
 true if the object contains property with given name 
 
 
◆ removeProperty()
  
  
      
        
          | virtual std::shared_ptr< JSONElement > tenduke::json::JSONObject::removeProperty  | 
          ( | 
          const std::string & |           propertyName | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Removes property from this object. 
- Parameters
 - 
  
  
 
- Returns
 - the removed property 
 
 
 
The documentation for this class was generated from the following file: