Add JSON serialization to ORM