G
G
grigorie19902018-03-22 14:30:46
JSON
grigorie1990, 2018-03-22 14:30:46

SyntaxError: Unexpected end of JSON input swears by space?

Good afternoon!
I'm passing the JSON to vue via a parameter in the
<order fuel_cost={{ $pricesJSON }}></order>
What's passed first tag:

{"id":8,"user_id":9,"Ai98":"1","created_at":"2018-03-21 22:11:06","updated_at":"2018-03-21 22:11:06"}

When reading the date, he notices a gap and starts cursing. He cuts it off (more precisely, it doesn’t read further before the space), I just console.log() did it when I came to vue
{"id":8,"user_id":9,"Ai98":"1","created_at":"2018-03-21

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mShpakov, 2018-03-22
@mShpakov

And if
<order :fuel_cost={{ $pricesJSON }}></order>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question