What is being dumped when expanding Json.NET scalar values?
LINQPad Version: 5.40.0 Any CPU (beta)
Json.NET Version: 12.0.2
I noticed that when dumping Json.NET JObjects that have string values, it's rendered as an on-demand link. Clicking on it outputs an empty collection.
![](https://us.v-cdn.net/5019392/uploads/editor/li/b9xm2u1o7iro.png)
What exactly is being dumped here? It's just a string. Is this a bug?
edit:
It seems to do this for all scalar values actually.
![](https://us.v-cdn.net/5019392/uploads/editor/h7/5qo3c3wb09uu.png)
Json.NET Version: 12.0.2
I noticed that when dumping Json.NET JObjects that have string values, it's rendered as an on-demand link. Clicking on it outputs an empty collection.
![](https://us.v-cdn.net/5019392/uploads/editor/li/b9xm2u1o7iro.png)
What exactly is being dumped here? It's just a string. Is this a bug?
edit:
It seems to do this for all scalar values actually.
![](https://us.v-cdn.net/5019392/uploads/editor/h7/5qo3c3wb09uu.png)
Comments
I might "fix" this in LINQPad 6 by special-casing the handling of Newtonsoft.JValue so that ignores the enumeration of IEnumerable if there are no members.