Selecting a JSON object with a colon in the key

前端 未结 1 1819
心在旅途
心在旅途 2020-11-30 01:44

I\'m using a third party tool that POSTs a JSON response. It works great, but one of the keys I need to use has a colon in it and I have no idea how to select this object in

相关标签:
1条回答
  • 2020-11-30 02:28

    It's simple:

    photo[':original'].id
    

    Dot/bracket notation

    0 讨论(0)
提交回复
热议问题