added JSON content type, whitespace changes