Fixed deep to_json