use json_decode() for "application/json" and "application/javascript"

as well as "text/json"