JSON db에 대한 링크가 될 URL을 얻을 수있는 곳을 구현하고 싶습니다. 이제이 URL에서 json을 가져 와서 std로 변환해야합니다. C++ 파일의 문자열. 이 작업을 수행하는 쉬운 방법이 있습니까?json to std :: string URL에서 C++로
0
A
답변
1
0
Windows 사용자의 경우 cURL 라이브러리를 사용할 필요가 없습니다. API 호출 URLOpenBlockingStream을 사용해보십시오. 사용하기 어렵지 않고 JSON 응답을 서버에서 다운로드합니다. JSON은 XML로 생각할 수 있습니다. 구조적으로 비슷하지만 두드러진 syntactical differences이 있습니다. 즉, 간단한 파서를 작성하는 것이 너무 어렵지 않아야합니다.
관련 문제
- 1. C++ std :: string and string
- 2. JSONResult to String
- 3. std :: string s = (std :: string) "a"+ "b"+ "c"; 승인?
- 4. 왜 std :: string :: max_size() == std :: string :: allocator :: max_size()
- 5. std :: string 이름과 std :: string 및 이름 사이의 C++ 차이점
- 6. std :: string :: find() 문제
- 7. std :: vector <std::string> 충돌
- 8. C++ builder, label.caption, std :: string to 유니 코드 변환
- 9. <String> to String
- 10. 웹 URL에서 JSON 검색
- 11. std :: sort on std :: vector <std::string>
- 12. std :: string 생성자가 포인터를 손상시킵니다.
- 13. BlackBerry Convert String to HTML
- 14. json url에서 이미지를 목록보기로
- 15. jQuery serializeArray() JSON String
- 16. QString std :: string 변환하는 방법?
- 17. std :: string == 연산자가 작동하지 않습니다.
- 18. std :: string :: 표준 구현 바꾸기?
- 19. php Object to String
- 20. jquery string to function
- 21. .NET DateTime to String
- 22. bytearray to string
- 23. XMLConfiguration to String
- 24. Javascript Element to string
- 25. NPVariant to string array
- 26. Java String [] to int []
- 27. 안드로이드와 Int to String
- 28. RegEx to Tokenize String
- 29. RHTML to string - rails
- 30. C++ int to string
플랫폼을 지정하십시오. Windows에는 libcurl과 그 외 많은 것들이 * nix에 내장 된 HTTP 라이브러리 (WinInet)와 함께 제공됩니다. –