Removing dependency on Newtonsoft.Json

It is not needed if we just remove the default constructor on pagination.
Adding test case for JSON serialization