This silently fails and could lead to unknown behaviour, how would the user know if the data is json encoded or not?