Ad Widget

Collapse

JSON path and errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • martin_dino
    Junior Member
    • Oct 2018
    • 6

    #1

    JSON path and errors

    Hello!

    I'd like to parse fully kiosk pbrowsers result from json but can't handle it

    The resulting json is (part of it):

    {
    "foregroundApp": "de.ozerov.fully",
    "appVersionName": "1.37",
    "ssid": ""ssid"",
    "internalStorageTotalSpace": 13478064128,
    "ramUsedMemory": 829001728,
    "appTotalMemory": 201326592,
    "appFreeMemory": 163262656,
    "internalStorageFreeSpace": 12721442816,
    "batteryLevel": 100,
    }

    Now with jq i can get the info:
    # jq .foregroundApp jq_test.json
    "de.ozerov.fully"

    But if i use dependent item i can not get nothing more than error "cannot extract value from json by path "$.foregroundApp":".

    Parameter is: $.foregroundApp

    What am i doing wrong?

    Edit:
    Seem's like item testing with dependent items are not working ?
    Last edited by martin_dino; 02-06-2020, 17:15.
Working...