> For the complete documentation index, see [llms.txt](https://glitch9.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://glitch9.gitbook.io/docs/support/how-to-setup-newtonsoft-json.md).

# How to setup Newtonsoft.Json

1. **Open the Unity Editor** and navigate to the **Window** menu.
2. Select **Package Manager** to open the Unity Package Manager.
3. Click on the **+** button at the top left of the window, and select **"Add package by name..."**.
4. Paste <mark style="color:red;">**com.unity.nuget.newtonsoft-json**</mark> into the dialog box and click **Add**.&#x20;

   <figure><img src="/files/JWKX4idyEurJWAHTK9rS" alt=""><figcaption></figcaption></figure>
5. Unity will now download and install Newtonsoft.Json into your project.

**Verify Installation:**

* After installation, `Newtonsoft.Json` should appear in the list of packages in the Package Manager. You can also verify the package is correctly added to your project by checking the **Packages** folder in your Unity Project window.
* Ensure that the `Newtonsoft.Json` namespace is accessible by attempting to use it within your scripts. For example, you can try adding `using Newtonsoft.Json;` at the top of one of your C# script files to confirm it's recognized by Unity.


---

# 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://glitch9.gitbook.io/docs/support/how-to-setup-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.
