added new content type json, added second method to handle option requests