vb.net - Consuming JSON response to Deserialize -
i'm getting response in json , i'm trying use
deserializestoreinforesponse(storeresponse string) string dim obj new json_resultstorepos obj = jsonconvert.deserializeobject(of json_resultstorepos)(storeresponse)
the initial response httpresponsemessage , need json string info. when it's nice neat string in json format deserializes fine json_resultstorepos table. i'm trying view initial response see if there in response , can't quite figure out actual json content written in httpresponsemessage?
here's of response:
?aresponse {statuscode: 200, reasonphrase: 'ok', version: 1.1, content: system.net.http.streamcontent, headers: { strict-transport-security: max-age=7776000; includesubdomains x-content-type-options: nosniff x-xss-protection: 1; mode=block pragma: no-cache keep-alive: timeout=5, max=100 connection: keep-alive cache-control: no-store date: thu, 10 nov 2016 13:37:39 gmt set-cookie: serverid=04-97jsnqeu5rg2g; path=/; httponly server: apache x-powered-by: express content-length: 71 content-type: application/json ?aresponse.content {system.net.http.streamcontent} headers: {content-length: 71 content-type: application/json } isbuffered: true buffersize: 4096 bufferedcontent: {system.net.http.httpcontent.limitmemorystream} cancalculatelength: true content: {system.net.http.httpclienthandler.webexceptionwrapperstream} contentconsumed: true contentreadstream: nothing disposed: false headers: {content-length: 71 content-type: application/json
how can see json string i'm deserializing ?
Comments
Post a Comment