Issue #1442💬 AnsweredOpened September 19, 2018by comedydriving1 reactions

Can't get json data to load.

Quick answerby comedydriving1

Solved. So the first issue is the content type needed to be json. Then I had to update my store php script to accept the json data: $POST = jsondecode(filegetcontents('php://input'), true); Lastly, my field in the database was set to "text" instead of "long text" so the json components were getting cut off.

Read full answer below ↓

Question

I'm able to save my json data to the database, but I cannot get the template to load it properly.

My json data can be seen here:

json_data

when I load the page it shows like this in the console, which leads me to believe the json isn't loading properly:

json_load

Is something not formatted in my json correctly?

Answers (2)

comedydrivingSeptember 20, 2018

Solved. So the first issue is the content type needed to be json. Then I had to update my store php script to accept the json data: $POST = jsondecode(filegetcontents('php://input'), true); Lastly, my field in the database was set to "text" instead of "long text" so the json components were getting...

lock[bot]September 20, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.