read allows for any type of response

Original code allowed only for an array of objects; new code allows for any type of response :
- array (of objects or not)
- object
- other (number, string, boolean, null)