Wrap untrusted json data decoding/encoding in a pcall

We are no longer using the safe version of the library