Does anyone know of a way to keep PHP $ _REQUEST from automatically converting JSON? I am sending data via POST and want to save it in its original form and just store it as a string.
Ideally, I want a simple way to โavoidโ a line segment. There seems to be probably an easy way to do this, but I haven't seen it.
Wow ... Please forgive my uncertainty about the wording of this question, I programmed a lot for several days and was just tired. I did not expect a rush to close my question before I could explain this misunderstanding.
I meant that I pass javascript objects to jQuery $ .ajax () as data and using type: "POST" to call. Later, I realized that $ .param () is used internally to serialize the object as a query string to pass, and that $ _REQUEST [] converts the objects passed in this way into array structures, as it would with any data of complex shape.
Client code
$.ajax({ type: "POST", url: "some.php", data: {"obj":{"key":"val"},"str":"text"} })
source share