class_docstr: Test class for JSONParser
class_docstr_tok: ["Test","class","for","JSONParser"]
docstr: JSONParser - Extract via JSON Path, Bad JSON
docstr_tok: ["JSONParser","-","Extract","via","JSON","Path",",","Bad","JSON"]
code: def test_extract_via_json_path_bad_json(self, log_mock):
      """JSONParser - Extract via JSON Path, Bad JSON"""
      options = {
          "schema": {"key": "string"},
          "configuration": {
              "embedded_json": True,
              "json_path": "key[].value",
          },
      }
      record_data = {"key": [{"value": "not json"}]}
  
      parser = JSONParser(options)
      result = parser._extract_via_json_path(record_data)
      assert_equal(result, [("not json", False)])
      log_mock.assert_any_call(
          "Embedded json is invalid: %s",
          "Expecting value: line 1 column 1 (char 0)",
      )
  
imports: import json
  from mock import patch
  from nose.tools import assert_equal
  from streamalert.classifier.parsers import JSONParser
label_desc: Use image node_id 25 for calling the TestJSONParser obj's underlying member method code with example usage: obj.test_extract_via_json_path_bad_json(log_mock) without return types