extracts default to_json/1 from models