Move json body detection to Request