   .replace(regExpLt, htmlEntityLt)
   .replace(regExpGt, htmlEntityGt)
   .replace(regExpQuot, htmlEntityQuot)
+
+_lowerCaseIt = (str) ->
+  str.toLowerCase()
+
+_lambda = (unknown) ->
+  unknown
+
 
 class Converter
   constructor: ({@dataReal, @dataExpected, @gavelResult, @usePointers}) ->

    message = ''

    if lowerCasedKeys
      transformKeys = (s) ->
        s.toLowerCase()
    else
      transformKeys = (s) ->
        s

    # get all pointers in expected data
    dataExpectedPointers = []
    traverse(@dataExpected).forEach (nodeValue) ->
      dataExpectedPointers.push jsonPointer.compile this.path.map(transformKeys)
      return

    dataRealPointers = []
    # get all pointers in expected data
    traverse(@dataReal).forEach (nodeValue) ->
      dataRealPointers.push jsonPointer.compile this.path.map(transformKeys)
      return

    if resultsCount
      for result in @gavelResult.results
        if result['pointer']? # filter out non json related errors
          if @areArraysIdentical pathArray.map(transformKeys), jsonPointer.parse(result['pointer'])

    message = ''

    if lowerCasedKeys
      transformKeys = _lowerCaseIt
    else
      transformKeys = _lambda

    if resultsCount
      dataRealPointers = []
      # get all pointers in expected data
      traverse(@dataReal).forEach (nodeValue) ->
        dataRealPointers.push jsonPointer.compile this.path.map(transformKeys)
        return

      for i in [0..resultsCount-1]
        if @areArraysIdentical pathArray.map(transformKeys), @gavelResult.rawData[i]?['property'] or []
          errorPointer = jsonPointer.compile(@gavelResult.rawData[i]?['property'] or [])
