Akeeba_Services_JSON::reduce_string

reduce a string by removing leading and trailing comments and whitespace