Added json encoding options to json response