Arrays GetJson带有Object.values,文本中带有逗号。如何去掉这些逗号?

Arrays GetJson带有Object.values,文本中带有逗号。如何去掉这些逗号?,arrays,getjson,Arrays,Getjson,我想用GetJson从JSON中获取一个特定的值,但它在值/文本中插入了逗号。以下是我的JSON的结构: {"api": {"results":10,"fixtures": [{"fixture_id":293298, "league_id":1251, "league": {"name":"CONMEBOL Libertadores", "country":"World",

我想用GetJson从JSON中获取一个特定的值,但它在值/文本中插入了逗号。以下是我的JSON的结构:

{"api":
{"results":10,"fixtures":
        [{"fixture_id":293298,
        "league_id":1251,
        "league":
            {"name":"CONMEBOL Libertadores",
            "country":"World",
            "logo":.....
我试图得到“name”值,即“CONMEBOL Libertadores”,而得到的是“C,O,N,m,e,B,O,L,L,I,B,e,r,t,a,d,O,r,e,s”

}))

如何在响应中消除这些逗号?谢谢

而不是

Object.values(data.api.fixtures[1].league.name)
试着换成

data.api.fixtures[1].league.name

资料来源:

效果非常好。非常感谢您的快速回复@马塞洛弗拉:没关系,请你把答案标记为正确,如果有帮助,请投赞成票。干杯
data.api.fixtures[1].league.name