Use multi_json for json encoding.