Tuesday, April 12, 2011

Json.NET Performance With Binary Data

Json.NET Performance With Binary Data - James Newton-King

"WCF DataContractJsonSerializer is by far the least efficient. When I looked into why it performed so badly it turns out that the WCF JsonSerializer serializes binary data as a JSON array of integers, one integer representing each byte. It goes without saying that you should never use the WCF JsonSerializer with binary data."