Update of response to include datatype and find out if content is json
or not.