diff options
Diffstat (limited to 'include/m_json.h')
-rw-r--r-- | include/m_json.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/m_json.h b/include/m_json.h index f258b0d9e6..62f3126ad1 100644 --- a/include/m_json.h +++ b/include/m_json.h @@ -166,6 +166,12 @@ LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const WCHAR_PARAM ¶m); LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const NULL_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const JSON_PARAM ¶m);
+// loads a JSON contents of a file
+LIBJSON_DLL(bool) file2json(const wchar_t *pwszFilename, JSONNode &root);
+
+// saves a JSON variable into a flie
+LIBJSON_DLL(bool) json2file(const JSONNode &root, const wchar_t *pwszFilename);
+
#endif // __cplusplus
#ifndef LIBJSON_EXPORTS
|