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
24
S
2
G
1
Posts: 46
Reputation: 1,112

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
56
S
20
G
1
Posts: 120
Reputation: 4,395

Post » Tue Jun 13, 2017 2:52 pm

B
17
S
2
G
1
Posts: 18
Reputation: 1,177

Post » Tue Jun 13, 2017 11:23 pm

Rex has the answer to life, universe and everything.
B
56
S
20
G
1
Posts: 120
Reputation: 4,395


Return to Construct 2 General

Who is online

Users browsing this forum: John Cutter and 3 guests