Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 jsoncpp 处理具有重复密钥对值的 JSON。我的 JSON 是这样的:
dict = { "a" : "1", "b" : "2", "c" : "3", "a" : "4", "c" : "5" }
即使这个 JSON 看起来“无效”,我也想在访问(1,4)时dict["a"]获取值列表。如何得到这个?
(1,4)
dict["a"]