# JSON Tag Import: Error importing tags: null

**URL:** <https://forum.inductiveautomation.com/t/json-tag-import-error-importing-tags-null/33344>\
**Category:** Ignition\
**Created:** [March 24, 2020, 12:44am UTC](https://forum.inductiveautomation.com/t/json-tag-import-error-importing-tags-null/33344 "2020-03-24T00:44:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnthonyF](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@AnthonyF](https://forum.inductiveautomation.com/u/AnthonyF)\
**Post date:** [March 24, 2020, 12:44am UTC](https://forum.inductiveautomation.com/t/json-tag-import-error-importing-tags-null/33344/1 "2020-03-24T00:44:09Z")

</div>

I am trying to generate a tag file to import in JSON format but keep getting this error when importing: Error importing tags: null  
I’ve checked the tag file I’ve generated but it all appears to be identical other than the line and indent formatting.

Any thoughts on what the issue is?  
Ignition 8.0.6

Contents of test file:

```auto
{
  "name": "",
  "tagType": "Provider",
  "tags": [
    {
      "name": "31MC01",
      "tagType": "Folder",
      "tags": [
        
        {
			"valueSource": "opc",
			"opcItemPath": "ns\u003d1;s\u003d[31MC01]B10:0/0",
			"dataType": "Boolean",
			"name": "ID_CR_HMI_ALM_ACCEPT",
			"tagType": "AtomicTag",
			"opcServer": "Ignition OPC UA Server",
			"documentation": "Crushing Area HMI Alarm Accept",
			"tooltip": "Crushing Area HMI Alarm Accept"
		},
      ]
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![AnthonyF](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@AnthonyF](https://forum.inductiveautomation.com/u/AnthonyF)\
**Post date:** [March 24, 2020, 1:13am UTC](https://forum.inductiveautomation.com/t/json-tag-import-error-importing-tags-null/33344/2 "2020-03-24T01:13:20Z")

</div>

Figured it out, extra comma at the end of the last tag causes the null error. Does it if you have one or many tags.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 24, 2020, 3:05pm UTC](https://forum.inductiveautomation.com/t/json-tag-import-error-importing-tags-null/33344/3 "2020-03-24T15:05:08Z")

</div>

The error’s pretty useless, but trailing commas _are_ illegal per the JSON spec. I’d suggest installing a JSON validator in your text editor of choice to catch easy stuff like that.

---

<div class="post-metadata">

**Author:** ![AnthonyF](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@AnthonyF](https://forum.inductiveautomation.com/u/AnthonyF)\
**Post date:** [March 24, 2020, 10:31pm UTC](https://forum.inductiveautomation.com/t/json-tag-import-error-importing-tags-null/33344/4 "2020-03-24T22:31:16Z")

</div>

Thanks, that’s a good suggestion.
