AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions
JSONUtils.cpp File Reference
#include "AVSCommon/Utils/JSON/JSONUtils.h"
#include <rapidjson/error/en.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include "AVSCommon/Utils/Logger/Logger.h"
Include dependency graph for JSONUtils.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 
 alexaClientSDK::avsCommon::utils::json
 
 alexaClientSDK::avsCommon::utils::json::jsonUtils
 

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Functions

static const std::string alexaClientSDK::avsCommon::utils::json::jsonUtils::TAG ("JsonUtils")
 String to identify log entries originating from this file. More...
 
static std::ostream & alexaClientSDK::avsCommon::utils::json::jsonUtils::operator<< (std::ostream &stream, rapidjson::Type type)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::parseJSON (const std::string &jsonContent, rapidjson::Document *document)
 
static void alexaClientSDK::avsCommon::utils::json::jsonUtils::serializeJSONObjectToString (const rapidjson::Value &documentNode, std::string *value)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::findNode (const rapidjson::Value &jsonNode, const std::string &key, rapidjson::Value::ConstMemberIterator *iteratorPtr)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::convertToValue (const rapidjson::Value &documentNode, std::string *value)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::convertToValue (const rapidjson::Value &documentNode, uint64_t *value)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::convertToValue (const rapidjson::Value &documentNode, int64_t *value)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::convertToValue (const rapidjson::Value &documentNode, bool *value)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::convertToValue (const rapidjson::Value &documentNode, double *value)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::jsonArrayExists (const rapidjson::Value &parsedDocument, const std::string &key)
 
template<>
std::vector< std::string > alexaClientSDK::avsCommon::utils::json::jsonUtils::retrieveStringArray< std::vector< std::string > > (const std::string &jsonString, const std::string &key)
 
template<>
std::vector< std::string > alexaClientSDK::avsCommon::utils::json::jsonUtils::retrieveStringArray< std::vector< std::string > > (const std::string &jsonString)
 
template<>
std::vector< std::string > alexaClientSDK::avsCommon::utils::json::jsonUtils::retrieveStringArray< std::vector< std::string > > (const rapidjson::Value &value)
 
template<>
std::string alexaClientSDK::avsCommon::utils::json::jsonUtils::convertToJsonString< std::vector< std::string > > (const std::vector< std::string > &elements)
 
std::map< std::string, std::string > alexaClientSDK::avsCommon::utils::json::jsonUtils::retrieveStringMap (const rapidjson::Value &value, const std::string &key)
 
void alexaClientSDK::avsCommon::utils::json::jsonUtils::retrieveStringMapFromArray (const rapidjson::Value &value, const std::string &key, std::map< std::string, std::string > &elements)
 
bool alexaClientSDK::avsCommon::utils::json::jsonUtils::retrieveArrayOfStringMapFromArray (const rapidjson::Value &value, const std::string &key, std::vector< std::map< std::string, std::string >> &elements)
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0