I knew why the original code was String#match because response mime_type becomes not only application/json but also application/json; charset=utf-8
to keep source code simple, I use String#include? instead because RubyMotion's String#match does not accept String object as an argument (it seems only Regexp object can be accepted)
application/json
but alsoapplication/json; charset=utf-8