please help me. How import json message to html
Asked
Active
Viewed 69 times
1 Answers
1
If it is a ajax call you need to call using the jquery, you need to call using the <object>.<attribute> like man.name.
IF you want to call using php, you need to decode json array using json_decode($jsonArray). The function is to convert json to array.
you can call using $object[attribute].
JSON decode using php: How do I extract data from JSON with PHP?
JSON decode using jquery: jQuery JSON Decode ( PHP to Javascript)
Eugine Joseph
- 1,552
- 3
- 18
- 40