skip to Main Content

Json – jq get values from complex object

I have an object that looks like this { "my_list": [ { "name": "an_image", "image": "an_image.com" }, { "name": "another_image", "image": "another_image.com" }, ...<more objects with image property> ], "foo": { "image": "foobar.io" }, "bar": { "image": "bar_image.io" }, ...<more…

VIEW QUESTION

Jquery Post with dynamic key

I would like to send a post request. But I have to change the key. function call(obj) { console.log("Call " + obj.value); if (obj.value == 1) { $.post( "index.htm", { '"webdata".web[1].Taster': '1'} ); } I would like to change [1]…

VIEW QUESTION
Back To Top
Search