Twitch SDK (Internal)
Namespaces | Functions
corejsonutil.h File Reference
#include "twitchsdk/core/types/coretypes.h"
#include "twitchsdk/core/json/value.h"

Go to the source code of this file.

Namespaces

 ttv
 JSON (JavaScript Object Notation).
 

Functions

bool ttv::ParseString (const ttv::json::Value &root, const char *key, std::string &result)
 
bool ttv::ParseString (const ttv::json::Value &root, const std::string &key, std::string &result, const char *defaultValue)
 
bool ttv::ParseBool (const ttv::json::Value &root, const char *key, bool &result)
 
bool ttv::ParseBool (const ttv::json::Value &root, const char *key, bool &result, bool defaultValue)
 
bool ttv::ParseUInt (const ttv::json::Value &root, const char *key, uint64_t &result)
 
bool ttv::ParseUInt (const ttv::json::Value &root, const char *key, uint32_t &result)
 
bool ttv::ParseUInt (const ttv::json::Value &root, const char *key, uint64_t &result, uint64_t defaultValue)
 
bool ttv::ParseInt (const ttv::json::Value &root, const char *key, int64_t &result)
 
bool ttv::ParseInt (const ttv::json::Value &root, const char *key, int64_t &result, int64_t defaultValue)
 
bool ttv::ParseDouble (const ttv::json::Value &root, const char *key, double &result)
 
bool ttv::ParseDouble (const ttv::json::Value &root, const char *key, double &result, double defaultValue)
 
bool ttv::ParseDocument (const std::string &body, ttv::json::Value &result)
 
bool ttv::ParseDocument (const char *begin, const char *end, ttv::json::Value &result)
 
bool ttv::ParseDocument (const uint8_t *begin, const uint8_t *end, ttv::json::Value &result)
 
bool ttv::ParseDocument (const std::vector< char > &body, ttv::json::Value &result)
 
bool ttv::JsonArrayToVector (const ttv::json::Value &jArray, std::vector< float > &result)
 
bool ttv::JsonArrayToVector (const ttv::json::Value &jArray, std::vector< std::string > &result)
 
bool ttv::ParseUserId (const json::Value &jId, UserId &result)
 
bool ttv::ParseChannelId (const json::Value &jId, ChannelId &result)
 
bool ttv::ParseGameId (const json::Value &jId, GameId &result)
 
bool ttv::ParseTimestamp (const json::Value &jTimestamp, Timestamp &result)
 
bool ttv::ParseTimestamp (const ttv::json::Value &root, const char *key, Timestamp &result)
 
bool ttv::ParseColor (const std::string &str, Color &result)
 
bool ttv::ParseColor (const ttv::json::Value &root, const char *key, Color &result)
 
bool ttv::ParseColor (const ttv::json::Value &root, const char *key, Color &result, Color defaultValue)
 
bool ttv::GenerateColorString (Color color, std::string &colorString)
 
bool ttv::ParseUInt32 (const json::Value &jValue, uint32_t &result)
 
bool ttv::ParseFloat (const json::Value &jValue, float &result)
 
bool ttv::ParseChannelInfo (const ttv::json::Value &root, ChannelInfo &model)
 
bool ttv::ParseStreamInfo (const ttv::json::Value &root, StreamInfo &model)