For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
HomeDocs
HomeDocs
      • Overview
        • Overview
          • Overview
          • Get basic values
          • Select conditional data
          • Return structured data
          • Manipulate data
          • Function reference
        • Deployed flows overview
        • Connector blocks overview
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

On this page
  • Example JSON
  • Get a top-level field
  • Get a nested field
  • Get an entire object
  • Select a specific index in an array
  • Select an entire array
  • Return one field of every object in an array
  • Return fields that contain special characters in the key name
  • Get the number of elements in a list
Postman FlowsFlows referenceFlows Query Language

Get basic values in FQL

||View as Markdown|
Was this page helpful?
Previous

Introduction to Flows Query Language

Next

Use FQL conditional logic to select data

Built with

FQL uses location path syntax to extract values from JSON structures. The following examples show several examples of getting basic values from JSON data.

Example JSON

The examples below use this JSON data in a variable named data:

1{
2 "name": "John Smith",
3 "address": {
4 "street": "123 Park Avenue",
5 "city": "Atlanta",
6 "state": "GA",
7 "zip": "12345"
8 },
9 "phones": [
10 {
11 "type": "Home",
12 "number": "123-456-7890"
13 },
14 {
15 "type": "Cell",
16 "number": "098-765-4321"
17 }
18 ],
19 "display name": "myuser123"
20}

Get a top-level field

To access a top-level field with FQL, enter the field’s name.

FQLdata.name
Result”John Smith”

Get a nested field

To access fields below the top level, use field names separated by dot . delimiters.

FQLdata.address.city
Result”Atlanta”

Get an entire object

Enter the name of an object in the JSON file to retrieve all the data within that object.

FQLaddress
Result
1{
2 "street": "123 Park Avenue",
3 "city": "Atlanta",
4 "state": "GA",
5 "zip": "12345"
6}

Select a specific index in an array

To access individual values in an array in a JSON file, specify an index number between square brackets after the array’s name.

FQLdata.phones[0].number
Result”123-456-7890”

Select an entire array

Enter the name of an array in the JSON file to retrieve all the data within that array.

FQLdata.phones
Result
1[
2 {
3 "type": "Home",
4 "number": "123-456-7890"
5 },
6 {
7 "type": "Cell",
8 "number": "098-765-4321"
9 }
10]

Return one field of every object in an array

To return a specific field from multiple objects in an array, enter the array’s name then the field’s name, separated by a dot.

FQLdata.phones.number
Result["123-456-7890","098-765-4321"]

Return fields that contain special characters in the key name

If a field in the JSON file has special characters (like spaces), put the field’s name in single quotes.

FQLdata.'display name'
Resultmyuser123

Get the number of elements in a list

FQLdata.$count(phones)
Result2