Implemented a JSON file format checking function.
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "stdio.h"
|
||||
#include "stdlib.h"
|
||||
#include "stdint.h"
|
||||
}
|
||||
|
||||
@@ -16,6 +14,13 @@ class Json_Arry; // Json 数组 元素必须是值
|
||||
class Json_Object; // Json 对象 对象内必须是键值对序列
|
||||
class Json_Value; // Json 值(可以是数组、对象、字符串、浮点数值和整数值、逻辑值、NULL)
|
||||
|
||||
/**
|
||||
* @brief Json文件 格式检查
|
||||
* @param path_to_file 文件路径串
|
||||
* @return std::string 错误值
|
||||
*/
|
||||
std::string JsonFile_FormatCheck(const char *path_to_file);
|
||||
|
||||
// Json 数组
|
||||
class Json_Arry
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user