Use the dedicated JSON plugin : construct.net/en/make-games/manuals/construct-3/plugin-reference/json Do not set Text.text to be equal to AJAX.LastData, but instead use the "Set JSON" action of the JSON object. Then, you can set Text.text to be equal to JSON.Get(YOUR_PATH). To define exactly what YOUR_PATH is supposed to be, it depends on the JSON data you are getting with AJAX. You unfortunately do not provide the exact structure for the data you get, so it is hard currently to help you further with this. Nevertheless, you can check this example that makes use of JSON data and adapt it to your own project accordingly.
Use the dedicated JSON plugin : construct.net/en/make-games/manuals/construct-3/plugin-reference/json
Do not set Text.text to be equal to AJAX.LastData, but instead use the "Set JSON" action of the JSON object.
Then, you can set Text.text to be equal to JSON.Get(YOUR_PATH).
To define exactly what YOUR_PATH is supposed to be, it depends on the JSON data you are getting with AJAX.
You unfortunately do not provide the exact structure for the data you get, so it is hard currently to help you further with this.
Nevertheless, you can check this example that makes use of JSON data and adapt it to your own project accordingly.
Dou you know plugin for construct 2 ?
Hi all,
I am new using construct. I want to ask.
I have json data like this:
I am using AJAX.lastdata, and the display data:
What should I do if I want to display only value of "first_name" and index of first?
Develop games in your browser. Powerful, performant & highly capable.
I want to ask.
What should I do if I want to display only property of "first_name" and index of first?
here how I fetch data:
the only method that I know to display data is uding AJAX.LastData
and the result
Please help me. How to display only specific property of json data that I have.
Thank you :)
You do not have permission to view this post
it finally works.. thank you very much.. :)
Is this true?
but still not working.. T_T
Thank you for answering my question.
I have made the data like this, but still not working
Score is variable
Hi all..
I am new using construct.. I want to integrate my game to API. I use AJAX post to URL.. but I can not write data of json.
Herw, what I have tried.. but I know it's wrong. I don't know how to.
Please help me, thank you :)