从QTCPSocket数据中解析JSON

时间:2016-06-29 12:54:34

标签: json qt parsing qtcpsocket

QTCPSocket数据包含HTTP标头和JSON。如何从中解析JSON?

POST / HTTP/1.1\r\nContent-Type: application/json\r\nContent-Length: 208\r\nConnection: Keep-Alive\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: ru-RU,en,*\r\nUser-Agent: Mozilla/5.0\r\nHost: localhost:5714\r\n\r\n
{\n\"profile\":{\n\"name\":\"ZH\",\n\"id\": 36359\n }}\n

0 个答案:

没有答案