💬

Community answer

Collected from the ACE community Discord archive around 2021-02-26. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

json.decode needed before indexing API data

🌙 LuaUpdated 2 days ago•0 views
The response body is a JSON string - run json.decode() on it first to get a table, then index fields like data.title.

Why 'attempt to index a string value' when reading API data

The response body is a JSON string - run json.decode() on it first to get a table, then index fields like data.title.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.