Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Load Testing
  • Getting started
    • Service overview
    • Agent
    • Agent selection
    • Load generator
    • Load profile
      • Overview
      • URI
      • URIPOST
      • PHANTOM
      • RAW
      • HTTP_JSON
      • GRPC_JSON
    • Testing threads
    • Autostop
    • Resource Check
    • Test agent monitoring
    • Reports
    • Load test regressions
    • Load test results
    • Comparing load test results
    • Test artifacts
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  1. Concepts
  2. Payloads and types
  3. HTTP_JSON

HTTP_JSON

Written by
Yandex Cloud
Updated at March 7, 2025

Type of test data for the Pandora load generator. It represents HTTP requests in a JSON structure.

The test data type is specified when creating a test.

Data format:

{"host": "example.com", "method": "GET", "uri": "/api/url1", "tag": "url1", "headers": {"User-agent": "Tank", "Connection": "close"}}
{"host": "example.com", "method": "POST", "uri": "/api/url2", "tag": "url2", "headers": {"User-agent": "Tank", "Connection": "close"}, "body": "body_data"}

Where:

  • host: Host header value.
  • method: HTTP request method.
  • uri: Request URI.
  • tag: Request tag to display in reports.
  • headers: Request headers.
  • body: POST request body. It is specified only if method=POST.

When providing a JSON structure in the body parameter, use the \ character to escape quotation marks:

{"host": "example.com", "method": "POST", "uri": "/api/url2", "tag": "url2", "headers": {"User-agent": "Tank", "Connection": "close"}, "body": "{\"data\": \"some_data\"}"}

When configuring the Pandora load generator using a file, specify the http/json type in the ammo section:

config_content:
          pools:
           - id: HTTP
             ammo:
               type: http/json
               file: ./ammo.json

When uploading a file with test data via the management console, this is done automatically.

Use casesUse cases

  • Invoking load testing from GitLab CI
  • Load testing a gRPC service

Was the article helpful?

Previous
RAW
Next
GRPC_JSON
Yandex project
© 2025 Yandex.Cloud LLC