Page 1 of 1
REST API for connecting to WordPress. JSON response looks fine, but no data mapping!
Posted: Wed May 21, 2014 2:01 am
by Thomas Butler
REST API to connect to WordPress. The JSON response looks solid, but a syntax error is generated "Uncaught SyntaxError: Unexpected token: ". None of the data mapping works (to local variables). The tests work just fine. I followed the tutorial to the letter and messed with this for six hours. I'm at a loss! Can anyone give me a hand?
REST API for connecting to WordPress. JSON response looks fine, but no data mapping!
Posted: Wed May 21, 2014 5:02 am
by Illya Stepanov
Hi Thomas,
Please clarify with what tutorial are you working?
And how you've tested the local variables binding?
REST API for connecting to WordPress. JSON response looks fine, but no data mapping!
Posted: Wed May 21, 2014 4:59 pm
by Thomas Butler
I think I got it figured out. I'll let you know and post the issue and workaround once I have the problem solved for sure. Thanks for the quick response.
REST API for connecting to WordPress. JSON response looks fine, but no data mapping!
Posted: Wed May 21, 2014 5:12 pm
by Kateryna Grynko
Hi Thomas,
Thank you for the update!