# Common Error for importing JSON documents for new blog post

**URL:** <https://community.prismic.io/t/common-error-for-importing-json-documents-for-new-blog-post/435>\
**Category:** Developing with Prismic\
**Created:** [May 15, 2020, 5:55pm UTC](https://community.prismic.io/t/common-error-for-importing-json-documents-for-new-blog-post/435 "2020-05-15T17:55:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zach](https://avatars.discourse-cdn.com/v4/letter/z/51bf81/32.png) [@zach](https://community.prismic.io/u/zach)\
**Post date:** [May 15, 2020, 5:55pm UTC](https://community.prismic.io/t/common-error-for-importing-json-documents-for-new-blog-post/435/1 "2020-05-15T17:55:51Z")

</div>

I'm writing a script to construct the correct prismic import json from the wordpress api, which all goes well. However, when I import the documents on the prismic platform, there are error messages in the json which aren't super specific as far as where they're occurring and there isn't anything obviously off with the json (screenshot of error attached). The json is valid and there aren't any notable discrepancies between the problematic json and any other successful json document (both are generated in the same way). The error is always the same message, and always points to simply the beginning of the slices array in the json. I've checked the obvious, there don't seem to be missing "text" fields.  
I am also able to successfully see a preview of the entire post that the json would create while it's uploading, before it fails, with all of the slices that the json is supposed to generate intact.  
Wondering if anyone else has seen this one single error I've come across so far, and if so what it's referring to.  
If someone from Prismic sees this I'd be happy to forward the actual json file, but even just knowing the general issue the error is referring to would be helpful.

 ![Screen Shot 2020-05-15 at 1.49.57 PM](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/1X/f1a6a47e7912934ea752aec9f4136e4766d103de.png)  
Thank you!

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [June 15, 2020, 1:48pm UTC](https://community.prismic.io/t/common-error-for-importing-json-documents-for-new-blog-post/435/7 "2020-06-15T13:48:55Z")

</div>

Hello @zach, thank you for reaching out to us,

Are you still experiencing this issue? if you do, It’ll be helpful if you can share the JSON file with me in a private message so that I can test it on my side.

Thanks!

---

<div class="post-metadata">

**Author:** ![zach](https://avatars.discourse-cdn.com/v4/letter/z/51bf81/32.png) [@zach](https://community.prismic.io/u/zach)\
**Post date:** [June 16, 2020, 6:13pm UTC](https://community.prismic.io/t/common-error-for-importing-json-documents-for-new-blog-post/435/13 "2020-06-16T18:13:58Z")

</div>

Hi Paulina,  
I was able to resolve the issue, looks like if any field’s value is an empty string it will remove that key value pair for some reason and that missing field will cause the error. Could be useful in the docs but was able to figure it out with just a closer eye!  
Thanks for your help,  
Zach

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 15, 2020, 4:46pm UTC](https://community.prismic.io/t/common-error-for-importing-json-documents-for-new-blog-post/435/14 "2020-09-15T16:46:08Z")

</div>

closed on September 15, 2020, 4:46pm UTC, flag & select 'Something Else' to reopen.



---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 12:12pm UTC](https://community.prismic.io/t/common-error-for-importing-json-documents-for-new-blog-post/435/15 "2021-12-09T12:12:15Z")

</div>

Opened on December 9, 2021, 12:12pm UTC


