G
G
grigorie19902018-03-21 22:22:13
Vue.js
grigorie1990, 2018-03-21 22:22:13

[Vue warn]: Error in render: "SyntaxError: Unexpected end of JSON input"?

Good evening!
An error occurs if there are TIMESTAMP columns in the table I query the database
, then I encode it in JSON
$pricesJSON = json_encode($prices);
I pass the parameter in the tag:
<order fuel_cost={{ $pricesJSON }}></order>
I decode it in VUE:
var obj = JSON.parse(this.fuel_cost);
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question