Thomas Butler
Posts: 0
Joined: Mon May 19, 2014 6:19 pm

REST API for connecting to WordPress. JSON response looks fine, but no data mapping!

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

REST API for connecting to WordPress. JSON response looks fine, but no data mapping!

Hi Thomas,

Please clarify with what tutorial are you working?
And how you've tested the local variables binding?

Thomas Butler
Posts: 0
Joined: Mon May 19, 2014 6:19 pm

REST API for connecting to WordPress. JSON response looks fine, but no data mapping!

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.

Return to “Issues”