function parseRawBody (body, trim, contentType, indentCount) {
  if (contentType && (contentType === 'application/json' || contentType.match(/\+json$/))) {
    try {
      let jsonBody = JSON.parse(body);
      return `request.body = json.encode(${JSON.stringify(jsonBody, null, indentCount)});`;

    }
    catch (error) {
      // Do nothing
    }
  }
  return `request.body = '''${sanitize(body, trim)}''';`;
}
/**
 * Parses Raw data
 *
 * @param {Object} body Raw body data
 * @param {Boolean} trim indicates whether to trim string or not
 * @param {String} contentType the content-type of request body
 * @param {Integer} indentCount the number of space to use
 */
Parses Raw data
@param {Object} body Raw body data
@param {Boolean} trim indicates whether to trim string or not
@param {String} contentType the content-type of request body
@param {Integer} indentCount the number of space to use
Parses Raw data @param { Object } body Raw body data @param { Boolean } trim indicates whether to trim string or not @param { String } contentType the content - type of request body @param { Integer } indentCount the number of space to use
function parseRawBody (body, trim, contentType, indentCount) {
  if (contentType && (contentType === 'application/json' || contentType.match(/\+json$/))) {
    try {
      let jsonBody = JSON.parse(body);
      return `request.body = json.encode(${JSON.stringify(jsonBody, null, indentCount)});`;
    }
    catch (error) {
    }
  }
  return `request.body = '''${sanitize(body, trim)}''';`;
}
function parseRawBody ( body , trim , contentType , indentCount ) { if ( contentType && ( contentType === 'application/json' || contentType . match ( / \+json$ / ) ) ) { try { let jsonBody = JSON . parse ( body ) ; return ` ${ JSON . stringify ( jsonBody , null , indentCount ) } ` ; } catch ( error ) { } } return ` ${ sanitize ( body , trim ) } ` ; }
Parses Raw data
 @param {Object} body Raw body data
 @param {Boolean} trim indicates whether to trim string or not
 @param {String} contentType the content-type of request body
 @param {Integer} indentCount the number of space to use
Parses Raw data @param { Object } body Raw body data @param { Boolean } trim indicates whether to trim string or not @param { String } contentType the content - type of request body @param { Integer } indentCount the number of space to use
// Do nothing