use json() instead of text for request