Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Query
  • Access management
  • Pricing policy
    • Terraform
    • SDK
      • Overview
      • Authentication
      • YQL to JSON type mapping
    • Apache Airflow™
  • Integrations
  • Audit Trails events
  • FAQ

In this article:

  • Scalar types
  • Complex types
  • Optional types
  • Containers
  • Special types
  1. Reference
  2. HTTP API
  3. YQL to JSON type mapping

YQL to JSON type mapping

Written by
Yandex Cloud
Updated at July 1, 2026
View in Markdown
  • Scalar types
  • Complex types
  • Optional types
  • Containers
  • Special types

The following rules apply when converting YQL types to JSON types.

Scalar typesScalar types

YQL type JSON type JSON example
Int8, Int16, Int32
Uint8, Uint16, Uint32
Integer 647713
Int64, Uint64 Integer if the value is in the range [-(253-1) ... (253-1)]; otherwise, String -9007199254740991
"-9007199254740991"
"10446744073709551615"
Bool Bool True
Float, Double Double
NaN and Inf (written as String)
7,88731023
"nan"
"inf"
Decimal String "45,23410083"
String Base64 string (string as a byte array) "0LDQsdGB0ZHQmWFiYw=="
Utf8 String "String text"

Complex typesComplex types

YQL type JSON type JSON example
Json, JsonDocument String (whole node serialized to a string) "{\"a\":[1,2,3]}"
Date, Datetime, Timestamp String in ISO-8601 format "2022-02-09"
"2021-01-01T14:05:43Z"
"2022-02-13T12:26:52.879622Z"
Interval String in ISO-8601 format "PT1M"

Optional typesOptional types

YQL type JSON type JSON example
Optional Array [] []: Nothing [10]: Just 10

Optional type nesting is preserved: Just(Just(Just(10))): [[[10]]].

ContainersContainers

YQL type JSON type JSON example
List<Type> Array [1,2,3,4]
Dict<KeyType, ValueType> Array of arrays [[key1, value1], [key2, value2]]
Set<KeyType> Array [key_value1, key_value2]
Tuple<Type1, Type2> Array [element1, element2, ..]
[]: Empty tuple
Struct<Name:Utf8,Age:Int32> Object {} { "Name": "John", "Age": 128 }
Variant<Type1, Type2> with a tuple Two-element array: [filled_index, Value_by_index] Variant<Utf8, Int32> Variant(64563, 1) — [1, 64563]
Variant<value:Int32,error:String> structured string Two-element array: [filled_index, Value_by_index] Variant<complete:Bool,error:Utf8>
Variant(false, "complete") — ["complete", false]

Special typesSpecial types

YQL type JSON type
Void, Null Null
EmptyList, EmptyDict []
Tagged The original type is preserved, but the custom tag name is lost

Was the article helpful?

Previous
get-query-results
Next
Apache Airflow™
© 2026 Direct Cursus Technology L.L.C.