quick fix for parsing json. it will need more fix to choose mime part correctly.