function getPositionForPath (text, paths) {
  const result = []
  let jsmap
  if (!paths || !paths.length) {
    return result
  }

  try {
    jsmap = jsonMap.parse(text)
  } catch (err) {
    return result
  }

  paths.forEach(path => {
    const pathArr = parsePath(path)
    const pointerName = compileJSONPointer(pathArr)
    const pointer = jsmap.pointers[pointerName]
    if (pointer) {
      result.push({
        path,
        line: pointer.key ? pointer.key.line : (pointer.value ? pointer.value.line : 0),
        column: pointer.key ? pointer.key.column : (pointer.value ? pointer.value.column : 0)
      })
    }
  })

  return result
}
Returns location of json paths in certain json string
@param {String} text json string
@param {Array<String>} paths array of json paths
@returns {Array<{path: String, line: Number, row: Number}>}