diff options
Diffstat (limited to 'xbmc/utils/JSONVariantParser.h')
| -rw-r--r-- | xbmc/utils/JSONVariantParser.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/xbmc/utils/JSONVariantParser.h b/xbmc/utils/JSONVariantParser.h new file mode 100644 index 0000000..17cfb61 --- /dev/null +++ b/xbmc/utils/JSONVariantParser.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2015-2018 Team Kodi | ||
| 3 | * This file is part of Kodi - https://kodi.tv | ||
| 4 | * | ||
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later | ||
| 6 | * See LICENSES/README.md for more information. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #pragma once | ||
| 10 | |||
| 11 | #include "utils/Variant.h" | ||
| 12 | |||
| 13 | #include <string> | ||
| 14 | |||
| 15 | class CJSONVariantParser | ||
| 16 | { | ||
| 17 | public: | ||
| 18 | CJSONVariantParser() = delete; | ||
| 19 | |||
| 20 | static bool Parse(const char* json, CVariant& data); | ||
| 21 | static bool Parse(const std::string& json, CVariant& data); | ||
| 22 | }; | ||
