support for 5.08 since it was a 1 line change, adding some additional handlers for www-json-response