Read JSON Response

Discussion and feedback on Construct 2

Post » Sat Jun 10, 2017 6:09 pm

When i call my api through ajax it response like this :
Code: Select all
{"SUCCESS":true,"first_name":"tharidoo","image":"","last_name":"prabash","phone_number":"","username":"thari123"}


so in ajax in construct2, how to read it values. as a example i need to get the "last_name" in json response. then how to do it
Image
B
23
S
2
G
1
Posts: 46
Reputation: 1,087

Post » Sun Jun 11, 2017 11:13 am

Not sure if there is an basic C2 way, but I use this: plugin-json-import-export-generate-edit-inspect_t100042
B
40
S
12
G
1
Posts: 66
Reputation: 2,926

Post » Tue Jun 13, 2017 2:52 pm

B
16
S
2
G
1
Posts: 18
Reputation: 1,152

Post » Tue Jun 13, 2017 11:23 pm

Rex has the answer to life, universe and everything.
B
40
S
12
G
1
Posts: 66
Reputation: 2,926


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests