Testing JSON serializer