ParticularSoftware/Profiler — pull request #8 by johnsimons (2013-07-12 02:16:26+00:00)
Title: Converting from base64 byte array to xml

Hi @HEskandari,

Finally figured out what the problem is with the xml not being displayed.

The problem is that we use Json.Net to convert the http REST response to json and Json.Net serializer uses base64 encoding to serialize `byte[]`, see http://james.newtonking.com/archive/2010/02/07/json-net-performance-with-binary-data.aspx

On the Profiler end, the RestSharp deserializes the response using its own JSON deserializer which does not understand how to deserialize the base64 string!, see https://github.com/restsharp/RestSharp/wiki/Deserialization

So we I had to double decode it!

IMHO, I think we should change the RestSharp JSON deserializer to use Json.Net so we avoid other possible issues in the future.

Thoughts?