function looksLikeJson(spec) {
  return typeof spec === 'string' && spec.startsWith('{');
}
Converts OpenAPI input to OpenAPI Object
@param {String} spec OpenAPI input in string
@returns {boolean} wheter the input looks like a json