Avoid sending explicit type in json when POST'ing and PATCH'ing objects when not necesarry.