Custom accepts

Let user detect json or not.