Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Sony Malaysia univels WF-1000XM6 for RM1599, RM350 off when you preorder it

    iOS 26.3 now lets you migrate to Android easier

    Samsung Galaxy S26 series to launch on 26 February 2026

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026

      To avoid accusations of AI cheating, college students are turning to AI

      January 29, 2026

      ChatGPT can embrace authoritarian ideas after just one prompt, researchers say

      January 24, 2026
    • Business

      The HDD brand that brought you the 1.8-inch, 2.5-inch, and 3.5-inch hard drives is now back with a $19 pocket-sized personal cloud for your smartphones

      February 12, 2026

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025
    • Crypto

      How Polymarket Is Turning Bitcoin Volatility Into a Five-Minute Betting Market

      February 13, 2026

      Israel Indicts Two Over Secret Bets on Military Operations via Polymarket

      February 13, 2026

      Binance’s October 10 Defense at Consensus Hong Kong Falls Flat

      February 13, 2026

      Argentina Congress Strips Workers’ Right to Choose Digital Wallet Deposits

      February 13, 2026

      Monero Price Breakdown Begins? Dip Buyers Now Fight XMR’s Drop to $135

      February 13, 2026
    • Technology

      This MacBook Pro has a Touch Bar and is only $410 while stock lasts

      February 13, 2026

      Intel’s tough decision boosted AMD to record highs

      February 13, 2026

      Bundle deal! Ring Battery Doorbell and Outdoor Cam Plus (44% off)

      February 13, 2026

      Microsoft Store goes zero-clutter—through the command line

      February 13, 2026

      How Boll & Branch leverages AI for operational and creative tasks

      February 13, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»JSON Query
    Technology

    JSON Query

    TechAiVerseBy TechAiVerseOctober 27, 2025No Comments2 Mins Read3 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    JSON Query

    Function name(argument1, argument2, ...)

    A function is defined as a function name followed by comma separated arguments wrapped in round brackets. it is important to understand functions like filter, sort, and max are executed as a method in a chain: the operation is applied to the data input, and forwarded to the next method in the chain (if any).

    Examples:

    sort(.address.city, "asc")
    filter(.age >= 21) | sort(.age, "asc")

    Documentation:

    Function reference:

    Operator left operator right

    JSON Query supports all basic operators. Operators must have both a left and right hand side. To override the default precedence, an operator can be wrapped in parentheses (...).

    Examples:

    .age >= 18
    filter(.age >= 18 and .age <= 65)

    Documentation:

    Operator reference:

    Pipe query2 | query2 | ...

    A pipe is an array containing a series of queries. The queries in the pipeline are executed one by one, and the output of the first is the input for the next.

    Example:

    filter(.age >= 18) | sort(.name)

    Documentation:

    Object {prop1: query1, prop2: query2, ...}

    An object is defined as a regular JSON object with a property name as key, and a query as value. Objects can be used to transform data or to execute multiple query pipelines in parallel.

    Example:

    {
      names: map(.name),
      numberOfNames: size()
    }

    Documentation:

    Array [query1, query2, ...]

    An array is defined as a regular JSON array: enclosed in square brackets, with items separated by a comma.

    Example:

    filter(.city in ["New York", "Atlanta"])

    Documentation:

    Property .prop1.prop2

    A property retrieves a property from an object. Multiple consecutive properties will retrieve a nested property.

    Examples:

    .age
    .address.city
    "first name"
    get()
    get("address", "city")

    Documentation:

    Value "string", number, boolean, null

    JSON Query supports the following primitive values, the same as in JSON: "string", number, boolean, null.

    Examples:

    "Hello world"
    "Multi line textnwith "quoted" contents"
    42
    2.74
    -1.2e3
    true
    false
    null

    Documentation:

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous Article14 New Horror Movies and Shows to Stream Right Now
    Next Article JetKVM Is Now Available for Retail Purchase
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    This MacBook Pro has a Touch Bar and is only $410 while stock lasts

    February 13, 2026

    Intel’s tough decision boosted AMD to record highs

    February 13, 2026

    Bundle deal! Ring Battery Doorbell and Outdoor Cam Plus (44% off)

    February 13, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025669 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025258 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025153 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025111 Views
    Don't Miss
    Gadgets February 13, 2026

    Sony Malaysia univels WF-1000XM6 for RM1599, RM350 off when you preorder it

    Sony Malaysia univels WF-1000XM6 for RM1599, RM350 off when you preorder it Sony Malaysia has…

    iOS 26.3 now lets you migrate to Android easier

    Samsung Galaxy S26 series to launch on 26 February 2026

    This MacBook Pro has a Touch Bar and is only $410 while stock lasts

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Sony Malaysia univels WF-1000XM6 for RM1599, RM350 off when you preorder it

    February 13, 20261 Views

    iOS 26.3 now lets you migrate to Android easier

    February 13, 20262 Views

    Samsung Galaxy S26 series to launch on 26 February 2026

    February 13, 20262 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    This new Roomba finally solves the big problem I have with robot vacuums

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.