jq icon indicating copy to clipboard operation
jq copied to clipboard

How to access object properties containing special characters?

Open vigliensoni opened this issue 7 years ago • 1 comments

Hi, I would like to know how can I access #text using jq.

{
  "#text": "Bullet for My Valentine",
  "mbid": "d530dbf9-69b1-404f-98f2-0431104f5a1e"
}

vigliensoni avatar May 25 '17 10:05 vigliensoni

@vigliensoni Hi, this problem have nothing to do with jq. just use javascript is ok. const a = {'#1': 1}; console.log(a['#1']); // log 1

soneway avatar May 26 '17 09:05 soneway