adjusts JSON acceptance and formatting