Universal Import Fails

I have valid JSON, and it will not accept this sample of Tags. The only error I get is a notification in the bottom left corner that isn’t very helpful.

  1. Is there somewhere in the Admin or even in the files with more detailed logs?
  2. Also why doesn’t this work? What is missing or mis-configured in this sample?

{
    "data": {
        "tags": [
            {
                "name": "Education",
                "slug": "education",
                "description": ""
            },
            {
                "name": "Entertainment",
                "slug": "entertainment",
                "description": ""
            },
            {
                "name": "Leadership",
                "slug": "leadership",
                "description": "Description for Leadership"
            },
            {
                "name": "Pop Culture",
                "slug": "pop-culture",
                "description": "Description for Pop Culture"
            },
            {
                "name": "Technology",
                "slug": "technology",
                "description": "Description for Technology"
            }
        ]
    }
}

If you’re self hosted, your logs are in your Ghost install location, in content/logs.

Looks like you’re missing the meta part of the json file. See the start of this doc for details.

1 Like

Thank you. I will look in the content/logs area.

I have looked at the Developer Guide and it is lacking. The example near the end, as is, will not pass the JSON Lint. You can remove the comments and extra commas and invalid objects and make it pass the JSON Lint, but as sample data I didn’t try to import it into our blog.

@Cathy_Sarisky thank you!! I added the Meta and the import worked. I appreciate your quick reply so I can keep working.

I wish the doc page was more complete.

1 Like

Glad that got you fixed!

I have no power to fix the docs, alas, but I’m glad you were able to use them to solve your problem!

1 Like