adding JSON serializer for grid