Refactored json_home serialization