media_set: make sure we PUT JSON data

(but it makes no difference for rails)