can't get json data to load.
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:
when I load the page it shows like this in the console, which leads me to believe the json isn't loading properly:
Is something not formatted in my json correctly?
Answers (2)
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 = json_decode(file_get_contents('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.
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.
Issue #1539
How and where to define form's action in grapesjs
Hello All, how can i get data from forms in grapesjs. i have droped a form on canvas as u can see that below . so there is an action proper...
Issue #401
Cannot upload images
Hi, while uploading an image through asset manager, I get the following error: Assetmanager configuration at editor init looks like Folder...
Issue #472
Modal
Hi @artf I am trying to save my template in database on click of save I wanted to show a success message in toast. Can you please help me w...
Issue #1706
[Question]: How to get href from rte?
I have this rte toolbar where you can type and click 'save' and it's going to create a link for the selected text. but the problem is that...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.