---
title: InitJson
description: "初始化JSON。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0384.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0384.html
indexId: 089d388b8a977771e62cf39c741374c144f0728817863b20d48daa1235eb18a8102
---
# InitJson

#### 函数功能

初始化JSON。


#### 函数原型

```
APP_ERROR ConfigData::InitJson(std::ifstream &inFile);
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| inFile | 输入 | 读取的文件。 |


#### 返回参数说明

| 数据结构 | 运算说明 |
| --- | --- |
| APP\_ERROR | 程序执行返回的错误码，请参考APP\_ERROR说明。 |
