✅ Now Live on Google Workspace Marketplace! Install Free in 1 Click ➔ • Early-Bird Lifetime Pro just $19 (use code EARLYBIRD).
PayloadFlatten
Install on Google Sheets
1 Row Per Line Item • =FLATTEN_JSON_ROWS()

Unroll Nested JSON Arrays into Rows in Google Sheets

When an order has 3 items, you need 3 rows—each with the parent Order ID, Customer Email, and Date repeated automatically. Do it in 1 formula.

Install Free on Google Marketplace ➔ Test Interactive Demo Below View Early-Bird ($19)
Runs on Google Apps Script Native =FLATTEN_JSON() formula Zero server maintenance

Live Interactive Simulator

Pre-loaded with sample payload: Multi-Item E-Commerce Order Payload

Load sample:
Edit or paste your own
✅ Extracted 16 columns in 4ms
B1: =FLATTEN_JSON(A2:A)
order_idorder_datecustomer.emailcustomer.countryline_items.0.skuline_items.0.titleline_items.0.qtyline_items.0.priceline_items.1.skuline_items.1.titleline_items.1.qtyline_items.1.priceline_items.2.skuline_items.2.titleline_items.2.qtyline_items.2.price
88492012026-11-01claire@atelier.frFRLINEN-SHIRT-SClassic Linen Shirt285.0LEATHER-BELT-MBraided Leather Belt155.0CANVAS-TOTEWeekend Canvas Tote145.0

Why Operators Choose PayloadFlatten

Stop burning manual engineering hours or expensive SaaS subscriptions on simple webhook parsing.

Horizontal Indexed Columns (items.0, items.1)

  • ✕ Creates hundreds of horizontal columns when an order contains 10+ line items.
  • ✕ Impossible to build a Pivot Table by SKU or Product Name across orders.
  • ✕ Manual copy-pasting to duplicate parent order details for every child item.
  • ✕ Complex Apps Script loops that break when nested arrays are 3 or 4 levels deep.
Modern Client-Side

The =FLATTEN_JSON_ROWS() Engine

  • ✓ Automatically detects the primary array of objects (even 4 levels deep like Stripe data.object.lines.data).
  • ✓ Creates 1 clean row per array item and repeats all parent scalar fields on every row.
  • ✓ Specify a custom array path or let auto-detection find line_items automatically.
  • ✓ Works both as the =FLATTEN_JSON_ROWS(A2:A) formula and in the 1-click Side Panel.

Simple, Transparent Pricing

No monthly retainers. No cloud relays. Own it for life.

Free Forever

For solo operators testing the formula.

$0 / lifetime
  • Native =FLATTEN_JSON() formula
  • Instant 30-second Apps Script setup
  • Up to 50 rows per batch run
  • 100% Google Apps Script privacy
Install Free from Marketplace ➔
Early-Bird Deal • 60% Off

Early-Bird Solo

Complete freedom for individual operators.

$19 $49 One-time payment

Use code EARLYBIRD at checkout

  • 1 Google Account license
  • Unlimited rows & runs (no cap)
  • Full recursive object & array un-nesting
  • Dot notation customization
  • Lifetime license key & updates
Claim $19 Solo License ➔

Team & Agency

For agencies managing client automations.

$49 $149 One-time payment

Multi-account agency license

  • Up to 5 Google Accounts
  • Unlimited rows, runs & sheets
  • Automated spreadsheet installable triggers
  • Commercial & client delivery allowed
  • Priority 1-on-1 email support
Get Team License ($49) ➔

Frequently Asked Questions

Common questions about Convert JSON array to rows Google Sheets line items and spreadsheet un-nesting.

How does =FLATTEN_JSON_ROWS() know which array to unroll?

By default, it recursively searches the JSON object (up to 4 levels deep) for the first array of objects—such as line_items, items, or data.object.lines.data. You can also pass an explicit path like =FLATTEN_JSON_ROWS(A2:A, ".", "line_items").

What happens to the parent fields like order_id and customer.email?

All parent fields are flattened with dot notation and automatically repeated on every child row so you can immediately run Pivot Tables, VLOOKUP, or SUMIFS by product SKU.

Google Workspace Marketplace Approved

Ready to un-nest JSON inside Google Sheets™?

Install PayloadFlatten directly from the official Google Workspace Marketplace in one click—free up to 50 rows per run, zero external servers.

Popular Integrations & Use Cases

Explore native un-nesting solutions for popular webhook payloads and data pipelines.

50 Pre-Configured Simulator Engines

Formula & Script Alternatives

Native formula replacements for fragile legacy scripts.

E-Commerce & Payment Webhooks

Un-nest order, customer, and transaction payloads.

Automation & Webhook Connectors

Stop burning operations in Make, n8n, and Zapier.

CRM, Forms & Developer Webhooks

Parse polymorphic form answers, lead updates, and git events.