Add response serialisation method