It would be nice to have a method that gets the string and converts it to a json object, or throws an exception if it can't parse.