Avoid double json_encoding