22 #ifndef BACKENDS_NETWORKING_CURL_CURLJSONREQUEST_H 23 #define BACKENDS_NETWORKING_CURL_CURLJSONREQUEST_H 25 #include "backends/networking/curl/curlrequest.h" 26 #include "common/memstream.h" 27 #include "common/formats/json.h" 31 typedef Response<const Common::JSONValue *> JsonResponse;
35 #define CURL_JSON_REQUEST_BUFFER_SIZE 512 * 1024 39 JsonCallback _jsonCallback;
53 static bool jsonIsObject(
const Common::JSONValue *item,
const char *warningPrefix);
54 static bool jsonContainsObject(
const Common::JSONObject &item,
const char *key,
const char *warningPrefix,
bool isOptional =
false);
55 static bool jsonContainsString(
const Common::JSONObject &item,
const char *key,
const char *warningPrefix,
bool isOptional =
false);
56 static bool jsonContainsIntegerNumber(
const Common::JSONObject &item,
const char *key,
const char *warningPrefix,
bool isOptional =
false);
57 static bool jsonContainsArray(
const Common::JSONObject &item,
const char *key,
const char *warningPrefix,
bool isOptional =
false);
58 static bool jsonContainsStringOrIntegerNumber(
const Common::JSONObject &item,
const char *key,
const char *warningPrefix,
bool isOptional =
false);
59 static bool jsonContainsAttribute(
const Common::JSONObject &item,
const char *key,
const char *warningPrefix,
bool isOptional =
false);
Definition: scummvmcloud.h:31
Definition: memstream.h:194
virtual void finishJson(const Common::JSONValue *json)
Definition: curlrequest.h:41
Definition: curljsonrequest.h:37