fix as_json