also add mime-type to json output

@sternk please review. I've also corrected copied documentation.