From a .NET assembly (non-web app)...
The normal response from Bit.ly is somewhat in the form of below. What is recommended way of consuming that result so that I can easily get the value of the shortUrl field? Since the original URL comes back as a "key", building a model class to deserialize it to and using LINQ does not seem to make sense. In Javascript, a simple .eval would work but what is the recommended approach in .NET since the model would be dynamic?
{
"errorCode": 0,
"errorMessage": "",
"results":
{
"http://www.google.com/":
{
"hash": "xxxxxx",
"shortKeywordUrl": "",
"shortUrl": "http://bit.ly/xxxxx",
"userHash": "1F5ewS"
}
},
"statusCode": "OK"
}