fix json_box for joined_ways, fix mimetype->content_type