- Is it not necessary to JSON.stringify the POST params/request object?
The general answer is: an object should aways
be serialized (eg: JSON.stringify
) to be sent through network. But if you are using some JavaScript frameworks which can serialize an object to a JSON string (or byte stream) automatically, then you can pass your object to the framework directly and let the framework handle it.
- Can it be sent directly as JS object?
No, any object should be serialized to a byte stream (or string) to be sent to the server side.
Here is about What is serialization?
- What is the difference in handling the same on the PHP side?
On PHP side, you just de-serialize the byte stream you received and you get the original object.