# JSON Generation

Struggling to generate the JSON files for your generative drop, or just unsure what JSON even is? Truffle has a tool to help generate everything you need following the Metaplex Standard! You can find this feature under  "Utilities" on side menu, followed by "JSON Generation".

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

### Providing Images

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

Once you are in the tool, you'll need to provide the images you'd like to generate the JSON files for. We support the following image formats: png, jpg, svg and gifs which can be of any size. The images must be named sequentially starting from 0, for example: 0.png, 1.png, 2.png and so on. &#x20;

{% hint style="info" %}
Depending on the number of images and the size, it might take a while to load them into the UI so please be patient.
{% endhint %}

### Default Details

#### Basic

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

From the Basic tab you can add the base details for your collection, these details will be used for each NFT unless if they have been overridden:

* Name ( as well as if you want to include the incremented number along with the name )
* Description
* Link
* Traits ( which will be added on all the NFTs )

#### Advanced

<figure><img src="/files/5I3lTKLaGsyNrsxe9722" alt=""><figcaption></figcaption></figure>

On the Advanced Tab if you have a single asset which you'd like to duplicate the JSON files for with the correct details you can.&#x20;

### Overriding Default Details

<figure><img src="/files/5LNVPFrgHnESeH14Krrs" alt=""><figcaption></figcaption></figure>

By clicking on one of the images on the left panel, the right panel will change allowing you to override the specific details which includes:&#x20;

* Name
* Description
* Link
* Traits ( where you can choose to override the default traits or have these traits along side the default ones )

{% hint style="info" %}
Want to get back to the default details panel? Just click on the selected image and you will be shown the default details panel.&#x20;
{% endhint %}

### Generate

Once all the values have been entered simply click `Generate` and a zip of the JSON files will be downloaded ready to be used in Truffle.


---

# Agent Instructions: 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.truffle.wtf/truffle-help-center/utilities/json-generation.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.
