summaryrefslogtreecommitdiff
path: root/src/mbgl/util/rapidjson.hpp
blob: 2fb2a07c9fd5501fdaa850e62efab142ceb7c904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <rapidjson/document.h>
#include <rapidjson/error/en.h>

namespace mbgl {

using JSDocument = rapidjson::GenericDocument<rapidjson::UTF8<>, rapidjson::CrtAllocator>;
using JSValue = rapidjson::GenericValue<rapidjson::UTF8<>, rapidjson::CrtAllocator>;

std::string formatJSONParseError(const JSDocument&);

} // namespace mbgl