Answer the question
In order to leave comments, you need to log in
[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 questionAsk a Question
731 491 924 answers to any question