class_docstr: Test class for JSONParser
class_docstr_tok: ["Test","class","for","JSONParser"]
docstr: JSONParser - Multi-nested JSON
docstr_tok: ["JSONParser","-","Multi-nested","JSON"]
code: def test_multi_nested_json(self):
      """JSONParser - Multi-nested JSON"""
      options = {
          "schema": {"name": "string", "result": "string"},
          "configuration": {"json_path": "profiles.controls[*]"},
      }
  
      expected_record = {"name": "test-infra-1", "result": "fail"}
  
      data = {"profiles": {"controls": [expected_record]}}
  
      record_data = json.dumps(data)
  
      # get parsed data
      parser = JSONParser(options)
      assert_equal(parser.parse(record_data), True)
  
      expected_result = [expected_record]
      assert_equal(parser.parsed_records, expected_result)
  
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 12 for calling the TestJSONParser obj's underlying member method code with example usage: obj.test_multi_nested_json() without return types