Use marshall instead of json for serialization.