I am (trying) to build a web app, first one :) I need to call a JSON object though, and I am using a simple search form to get a word that I will append to the call, but I need PHP to handle the object when it is returned. How can I do this? Basically I had the form submit calling a function that, ideally, would go get the object and do what it needs to, then return the results formatted how I want. Does that make sense even? Thank you!
+3
A:
PHP 5.x has some built in functions: json_decode() and json_encode(). They are worth looking into and should answer your question. If you have less then PHP 5.x the user comments at both of those pages should have alternatives to use in it's place.
Brad F Jacobs
2010-08-09 00:42:43
Yeah saw this :) I am going to read those now, do they do what I am looking for? I have never used those functions before..
thatryan
2010-08-09 00:58:47
Read through them to determine. But yes, they should do what you described both in the question and the comment you posted.
Brad F Jacobs
2010-08-09 01:00:28