StringBuilder.Append not working

We have a WCF project where JSON responses are generated automatically, but in one scenario, we create JSON manually and send it to the browser. This part works great.

Last night I noticed a mistake and tried to understand it, but the problem is really strange. Somehow, after the concatenation of string values, the block is deleted, and I do not know what happened here. See the following code, what happens?

My code that is causing the problem

Below is a JSON snapshot after "innerBlock" returned data

Result returned after innerBlock

Below is a JSON snapshot after adding a line!

Result returned after concatenation

+5
source share
1 answer

.Net . JSON , JSON, , , . JSON , .

+1

All Articles