Util.from.String Fix

This pull request fixes #10. "json" method was not defined.
Could you please try to detect json using regex?