Issue #1302Opened July 21, 2018by michaelreckendorfer0 reactions

Invalid JSON String - Load Data

Question

I had some problems loading templates. It did not work both the storage in a .json file and the processing in a mysql database.

my loading.php is very simple for testing:

<?php    $ str = file_get_contents ('database.json');    echo $ str;    ?>

The string was split into individual characters and packaged in an array.

After adjusting the following line everything worked well:

grapes.js - line 42667

       return _this.onResponse (text, clb); to        return _this.onResponse (JSON.parse (text), clb);

I also have the same problem when uploading assets ... here, however, I have not come up with the solution yet.

Answers (3)

suresh5December 7, 20180 reactions

I had some problems loading templates. It did not work both the storage in a .json file and the processing in a mysql database.

my loading.php is very simple for testing:

The string was split into individual characters and packaged in an array.

After adjusting the following line everything worked well:

grapes.js - line 42667

       return _this.onResponse (text, clb); to        return _this.onResponse (JSON.parse (text), clb);

I also have the same problem when uploading assets ... here, however, I have not come up with the solution yet.

Can you send your json response ?

suresh5December 7, 20180 reactions

I am not able to load template reply Can you help me with json format how to send ?

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.