REST API JSON not working
-
I’m using https://www.ads-software.com/plugins/rest-routes/ and with the help of it’s developer I was able to create a one-level array of same-structured objects as requested by wpdatatables. Screenshot: https://prntscr.com/ud83ei
If I add the URL https://domain.com/wp-json/portfolio/assets which has the output in the screenshot above, I get the error: “Please provide a valid 2-dimensional array.”
But if I save the output above in a file called assets.json and I try to add the URL https://domain.com/assets.json it works just fine.
Is this supposed to happen? Is there a way to make it work with the REST API?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘REST API JSON not working’ is closed to new replies.