Specific JSON field returned in command line based on a Chrome network tab request

Elvis Ciotti
Nov 26, 2021

--

Requisites

  • chrome
  • jq

How

  1. Chrome network tab: copy as cURL

2) Open terminal, paste (do not press enter)

3) Chrome network tab again: Copy property path

4) Back to terminal, append | jq ‘.’
and paste the copied path after the dot

e.g.

curl ... | jq '.field["key"].value'

--

--

Elvis Ciotti
Elvis Ciotti

Written by Elvis Ciotti

Software Contractor — Java, Spring, k8s, AWS, Javascript @ London - hire me at https://elvisciotti.github.io/

No responses yet