웹 서비스의 JSON 응답을 객체로 변환 한 다음 배열로 변환해야합니다. 내 응답은 아래의 것과 유사합니다 :JSON 문자열을 JSON 객체로 변환
{"status":{"error":"NO","code":"200","description":"none","message":"Request ok"},"geolocation":{"lat":"38.89515","lng":"-77.0310"},"stations":[{"country":"United States","regPrice":"0.00","midPrice":"0.00","prePrice":"0.00","streetAddress":"1401, I St NW","ID":"1900","lat":"38.901440","lng":"-77.032127","stationName":"Shell","logo":"http:\/\/www.nyneaxis.com\/logo\/stations\/noLogo.png","state":"District of Columbia","city":"Washington D.C.","regDate":null,"midDate":null,"preDate":null,"distance":"0.7"},{"country":"United States","regPrice":"0.00","midPrice":"0.00","prePrice":"0.00","streetAddress":"2116-2150, M St NW","ID":"13029","lat":"38.905201","lng":"-77.048103","stationName":"Exxon","logo":"http:\/\/www.nyneaxis.com\/logo\/stations\/noLogo.png","state":"District of Columbia","city":"Washington D.C.","regDate":null,"midDate":null,"preDate":null,"distance":"1.9"}]}
저는 콘솔에서 VB.NET을 사용하고 있습니다. 기본적으로 내 API 호출을 테스트하고 정보를 출력하는 간단한 방법을 만들려고합니다. 달성하고자하는 일은 JSON 배열을 반복하고 스테이션을 나열하는 것입니다. 전에 VB.NET에서이 작업을 한 적이 없으며 도움이 필요합니다. deserialization에 대해 읽었지만 이해하지 못합니다.
이 질문보기 http://stackoverflow.com/questions/1474377/json-library-for-c-sharp – MarkJ