Reply To: Formatted json?

Forums 💬 NodeCanvas 🗨️ General Discussion Formatted json? Reply To: Formatted json?

#13824
yauheni
Participant

    We have a simple solution that can help. Firstly, you have to enable pretyJson in Graph.cs (_serializedGraph = this.Serialize(true, _objectReferences);). Secondly, in fsJsonPrinter.cs replace this lines(stream.WriteLine();) with this (stream.Write(“n”)). This will make you Json string more readable. But you have to comment all this lines(InsertSpacing(stream, depth);). We could not combine spacings with new lines correctly. Maybe you can do it. Hope this helps.