checkJSON(angular.fromJson(input));