开发者

JSON - Parsing quick help (object name)

Parsing some JSON and one [edit: +"of the"] names for an object is "media:content".

Say I just want to quickly console.log this by,

c开发者_StackOverflow.l(results.entry[0].media:content.property)

how must I format that object name so it doesn't throw me a syntax error?


Something like this:

results.entry[0]["media:content"].property
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜