Bunny83 / SimpleJSON

A simple JSON parser in C#
MIT License
735 stars 294 forks source link

convert JSONNode to json string? #22

Closed ewwink closed 5 years ago

ewwink commented 5 years ago

how? and thanks

Bunny83 commented 5 years ago

Uhm with ToString?!

The normal ToString will create compact json, the ToString overload with an int parameter creates formatted json indented with that many spaces per nesting level.

So you want to use either

str = node.ToString(); or str = node.ToString(3);

ewwink commented 5 years ago

wow great, I don't need special method. Thanks