JSON Extractor

Reference

JsonPath


What it is

The JSON PostProcessor enables you extract data from JSON responses using JSON-PATH syntax.

JSON Extractor_第1张图片


Attribute

JSON Extractor_第2张图片


How use



  
    
      
      false
      false
      
        
      
      
    
    
      
        continue
        
          false
          1
        
        1
        1
        1492422813000
        1492422813000
        false
        
        
      
      
        
          false
          
            saveConfig
            
              
              true
              true
              true
              
              true
              true
              true
              true
              false
              true
              true
              false
              false
              true
              true
              false
              false
              false
              true
              0
              true
              true
              true
              true
              true
            
          
          
        
        
        
          true
          true
          200
          OK
          Dummy Sampler used to simulate requests and responses
without actual network activity. This helps debugging tests.
          {
  "employees": [
    {
      "firstName": "John",
      "lastName": "Doe"
    },
    {
      "firstName": "Anna",
      "lastName": "Smith"
    },
    {
      "firstName": "Peter",
      "lastName": "Jones"
    }
  ],
  "city": "Castle Rock",
  "state": "Maine"
}

          ${__Random(50,500)}
          ${__Random(1,50)}
          ${__Random(1,5)}
        
        
          
            firstName
            $..firstName
            -1
            NOT FOUND
            true
          
          
        
        
          false
          true
          false
        
        
      
    
  




output:

JSON Extractor_第3张图片



你可能感兴趣的:(JSON Extractor)