Hi Mohit,
There are many differences between these two as
- DateTimes de/serialize as quoted strings and for a time, the @RemoteAction serializer did not.
- @RemoteAction methods can serialize, but not deserialize ENUM values.
- JSON.deserialize will not handle deserializing into List<Object>, @RemoteAction deserialization will deserialize primitives properly into List<Object> but complex types will deserialize as nulls.
- Returning from a @RemoteAction doesn’t run getters, JSON.serialize does.
- JSON.deserialize and @RemoteAction deserialization both run setters.
Hope this helps you.
Thanks