Json file response
-
Good evening.
I need some assistance if possible.
I have a script that asks for an url file, which is read with wp_remote_get
I’m trying to make that url point to a php file and return a json response as if it was a file.
So far, I was able to do it like this: I created an array, and after that I coded:
header("Content-type:application/json"); $out = json_encode($json, true); echo $out;
where $json was a php array. The problem is that it’s not working anymore – it was, but not now.
Any ideas please?
Kind regards
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Json file response’ is closed to new replies.