Faced the following problem.
I send json to the server via $post . In firbug can see that the input data is sent normally. And on the resulting page

 document.location = '/' + lang + '/h?5555=' + est; 

I json_decode trying to output data via json_decode in php .

How not tried, the data does not come. Is the following algorithm correct?

sending Json -> Server -> data output on the resulting page

Or maybe some kind of handler between all this is needed?

  • one
    Please ask more detailed questions, show more examples and what you have already done. - And

2 answers 2

$ answer = json_encode ($ question); echo $ answer;

  • 6
    Please give more detailed answers - cache

since you wrote it produces "null";

{"1": null, "2": null, "3": null};