make json answer the same as formencoded answer