skip to Main Content

Trying to get the last object from a JSON list

I have the following JSON data : $ cat toto.json { "method": "GET", "path": "/users/sign_in", "status": 500, "exception.class": "NoMethodError", "exception.message": "undefined method `user_azure_activedirectory_v2_omniauth_authorize_path' for #<ActionDispatch::Routing::RoutesProxy:0x00007d6fe7cfd0d0 @scope=#<SessionsController:0x00000000186758>, @routes=#<ActionDispatch::Routing::RouteSet:0x00007d701b857b28>, @helpers=#<Module:0x00007d701b6f38b8>, @script_namer=nil>" } { "method": "GET", "path": "/users/sign_in", "status": 500, "exception.class": "NoMethodError", "exception.message":…

VIEW QUESTION

Json – Map Keys with value of Subkeys in jq

I try to reformat the output of the sensors command: sensors -j ftsteutates-i2c-0-73 { "ftsteutates-i2c-0-73":{ "Adapter": "SMBus I801 adapter at efa0", "VCC 3.3V":{ "in0_input": 3.331 }, "3.3V AUX":{ "in1_input": 3.359 }, "V_IN (12V)":{ "in2_input": 12.012 }, "VBAT 3.0V":{ "in3_input": 2.692…

VIEW QUESTION

Json – jq merge 2 rows to 1

{ "field": "@timestamp", "value": "2024-08-20 23:00:13.426" } { "field": "@message", "value": "Started-1" } { "field": "@timestamp", "value": "2024-08-20 23:00:13.427" } { "field": "@message", "value": "Started-2" } Edited to show that the JSONs are repeating block I have JSONs above which…

VIEW QUESTION
Back To Top
Search