# Aseprite json itemfilename {layer} not working?

**URL:** <https://community.aseprite.org/t/aseprite-json-itemfilename-layer-not-working/28226>\
**Category:** Bug Reports\
**Created:** [March 31, 2026, 4:46am UTC](https://community.aseprite.org/t/aseprite-json-itemfilename-layer-not-working/28226 "2026-03-31T04:46:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jest](https://community.aseprite.org/user_avatar/community.aseprite.org/jest/32/5077_2.png) [@jest](https://community.aseprite.org/u/jest)\
**Post date:** [March 31, 2026, 4:46am UTC](https://community.aseprite.org/t/aseprite-json-itemfilename-layer-not-working/28226/1 "2026-03-31T04:46:16Z")

</div>

anyone running to an issue where `{layer}_{tag}_{tagframe}_{duration}` the json does not have the `{layer}` part in the latest 1.3.17?

 ![image](https://community.aseprite.org/uploads/default/original/3X/8/5/8561b1d8097ffbcae2554e1df56f0c88099f6691.png)

 ![image](https://community.aseprite.org/uploads/default/original/3X/1/f/1f89f4e03b8753d280bdd48e30bc80f93bec8f12.png)

I snipped some of the json output for convenience but WTF!!! : `_closed_s_0_100` , where the hell is the layer name?

```auto
{ "frames": [
   {
    "filename": "_closed_s_0_100",
    "frame": { "x": 0, "y": 0, "w": 32, "h": 32 },
    "rotated": false,
    "trimmed": false,
    "spriteSourceSize": { "x": 0, "y": 0, "w": 32, "h": 32 },
    "sourceSize": { "w": 32, "h": 32 },
    "duration": 100
   }
 ],
 "meta": {
  "app": "http://www.aseprite.org/",
  "version": "1.3.17-x64",
  "image": "cage2.png",
  "format": "RGBA8888",
  "size": { "w": 160, "h": 32 },
  "scale": "1",
  "frameTags": [
   { "name": "closed_s", "from": 0, "to": 3, "direction": "forward", "color": "#000000ff" },
   { "name": "death_s", "from": 4, "to": 4, "direction": "forward", "color": "#000000ff" }
  ],
  "layers": [
   { "name": "cage", "opacity": 255, "blendMode": "normal" }
  ],
  "slices": [
  ]
 }
}

```

> **[cage2](https://www.mediafire.com/file/3zsix1i6zxf4o12/cage2.ase/file)**
>
> MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

OS:  
Arch Linux  
Aseprite version 1.3.17

---

<div class="post-metadata">

**Author:** ![jest](https://community.aseprite.org/user_avatar/community.aseprite.org/jest/32/5077_2.png) [@jest](https://community.aseprite.org/u/jest)\
**Post date:** [March 31, 2026, 2:58pm UTC](https://community.aseprite.org/t/aseprite-json-itemfilename-layer-not-working/28226/2 "2026-03-31T14:58:51Z")

</div>

it seems the “Split Layers” checkbox must be ticked in order for `{layer}` to work? But the documentation does not say any of that. If this is not a bug, it should be documented that its required to be checked

> **[\--filename-format - Aseprite](https://www.aseprite.org/docs/cli#filename-format)**
>
> You can convert or export your sprites to other formats (or textures+json data) from the command line. See Platform-specific Details section to know how to use the command line. | Animated sprite editor & pixel art tool

---

<div class="post-metadata">

**Author:** ![dacap](https://community.aseprite.org/user_avatar/community.aseprite.org/dacap/32/10_2.png) [@dacap](https://community.aseprite.org/u/dacap)\
**Post date:** [April 1, 2026, 11:57am UTC](https://community.aseprite.org/t/aseprite-json-itemfilename-layer-not-working/28226/3 "2026-04-01T11:57:07Z")

</div>

Hi @jest, actually using {layer} in the filename should enable the split layers option (at least from the CLI), probably a bug in the Export Sprite Sheet UI (or probably a more generic regression bug introduced). I’ll take a look to this later.

---

<div class="post-metadata">

**Author:** ![jest](https://community.aseprite.org/user_avatar/community.aseprite.org/jest/32/5077_2.png) [@jest](https://community.aseprite.org/u/jest)\
**Post date:** [April 3, 2026, 2:56pm UTC](https://community.aseprite.org/t/aseprite-json-itemfilename-layer-not-working/28226/4 "2026-04-03T14:56:03Z")

</div>

Yeah, CLI does require `--split-layers` for this to work. If its intended that the UI also needs `--split-layer` turned on then we should document it or show a warning of sorts
