Ah, for some reason I thought this would be turned into JSON automagically. You're right, this should be dependent on the requested type.