Mime type to json, iterating over data