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
  • Return multiple objects as an array
  • Return an array of a single field from multiple objects
  • Collapse multiple objects into a single key-value pair
  • Collapse and group results by a shared field value
Postman FlowsFlows referenceFlows Query Language

Return structured data in FQL

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

Use FQL conditional logic to select data

Next

Manipulate data in FQL

Built with

You can use Flows Query Language (FQL) to transform one JSON object into another, differently structured, JSON object. This topic provides example FQL expressions that show different ways of structuring the JSON output of an Evaluate block in Postman Flows.

To try out the examples, add a Record input to the Start block in your flow. Connect an Evaluate block to the Start block. In the Evaluate block’s dropdown menu, select FQL. Paste an example FQL expression into the Evaluate block. Then create a scenario and paste the following example JSON into the scenario field that corresponds to your Start block’s input.

Untitled
Click to view example JSON
1{
2 "name": "John Smith",
3 "physical_address": {
4 "street": "123 Park Avenue",
5 "city": "Atlanta",
6 "state": "GA",
7 "zip": "12345"
8 },
9 "work_address": {
10 "street": "583 W. Island Drive",
11 "city": "Miami",
12 "state": "FL",
13 "zip": "44456"
14 },
15 "mailing_address": {
16 "street": "232 Ravensburg Road",
17 "city": "Durham",
18 "state": "NC",
19 "zip": "03948"
20 },
21 "phones": [
22 {
23 "type": "Home",
24 "number": "123-456-7890"
25 },
26 {
27 "type": "Cell",
28 "number": "098-765-4321"
29 },
30 {
31 "type": "Cell",
32 "number": "888-777-5555"
33 },
34 {
35 "type": "work",
36 "number": "314-265-9078"
37 }
38 ]
39}

When you run the flow, the expression will operate on the example JSON and the Evaluate block will output the result.

Return multiple objects as an array

To return an array containing three of the top-level objects in the example JSON, use the following expression:

1 value1.[physical_address, work_address, mailing_address]
Expected result
1[
2 {"street": "123 Park Avenue","city": "Atlanta","state": "GA","zip": "12345"},
3 {"street": "583 W. Island Drive","city": "Miami","state": "FL","zip": "44456" },
4 {"street": "232 Ravensburg Road","city": "Durham","state": "NC","zip": "03948"}
5]

Return an array of a single field from multiple objects

To return an array containing only the values of the city key from the three top-level address objects in the example JSON, use the following expression:

1 value1.[physical_address, work_address, mailing_address].city
Expected result
1["Atlanta","Miami","Durham"]

Collapse multiple objects into a single key-value pair

FQL can return an array of key-value pairs composed of values from an object. To get the values of the type and number keys from objects in the phones array and return them as an array of key-value pairs, use the following expression:

1 value1.phones.{type: number}
Expected result
1[
2 {"Home": "123-456-7890"},
3 {"Cell": "098-765-4321"},
4 {"Cell": "888-777-5555"},
5 {"work": "314-265-9078"}
6]

Collapse and group results by a shared field value

FQL can return an array that groups the values of a given key that’s present in multiple input objects. To group the values of Cell keys from two different objects in the phones array, use the following expression:

1 value1.phones{type: number[]}
Expected result
1{
2 "Home": ["123-456-7890"],
3 "Cell": ["098-765-4321","888-777-5555"],
4 "work": ["314-265-9078"]
5}