1
如何使用json-spirit讀取C++中的json字符串?我閱讀演示代碼。 我發現:使用json-spirit讀取C++中的json字符串
const Address addrs[5] = { { 42, "East Street", "Newtown", "Essex", "England" },
{ 1, "West Street", "Hull", "Yorkshire", "England" },
{ 12, "South Road", "Aberystwyth", "Dyfed", "Wales" },
{ 45, "North Road", "Paignton", "Devon", "England" },
{ 78, "Upper Street", "Ware", "Hertfordshire", "England" } };
我可以將一個字符串轉換成JSON對象?
char* jsonStr = "{'name', 'Tom'}";