> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/missing-newtonsoft-json.md).

# 缺少 Newtonsoft Json

我们的插件包含多个使用 Newtonsoft Json 的脚本和依赖项。如果插件中缺少 Newtonsoft Json，可能会导致大量错误，如下所示：

<figure><img src="/files/a28e3eb7fcae61f9737f834609c67e6adf6da380" alt=""><figcaption></figcaption></figure>

确保你的 packages 中包含 NewtonSoft.Json。前往你的项目文件夹。

<figure><img src="/files/fdf56b21f94fe0fd3f27c1558ffefa1612606ecc" alt=""><figcaption></figcaption></figure>

然后进入 Packages 文件夹。在 Packages 文件夹中，点击 manifest.json。将会打开一个包含项目依赖项的 json 文件。

在顶部添加 Newtonsoft Json 包。

```json
    "com.unity.nuget.newtonsoft-json": "3.2.1",
```

最终的 manifest.json 应如下所示。

```json
{  
    "dependencies": {
        "com.unity.nuget.newtonsoft-json": "3.2.1", 
        "com.unity.animation.rigging": "1.1.1",
        "com.unity.ide.rider": "3.0.16",
        "com.unity.ide.visualstudio": "2.0.16",
        "com.unity.ide.vscode": "1.2.5",
        "com.unity.test-framework": "1.1.33",
        "com.unity.textmeshpro": "3.0.6",
        "com.unity.timeline": "1.6.4",
        .
        .
        .
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin/troubleshooting-guide/missing-newtonsoft-json.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
