Page MenuHomeFeedback Tracker

Add pretty print option to JsonSaveContainer
Closed, ResolvedPublic

Description

For development purposes, it would be nice to have prettified (property intented) JSON strings.
So maybe update the api to be

class JsonSaveContainer: BaseSerializationSaveContainer
{
    proto string ExportToString(bool pretty = false);
    proto external bool SaveToFile(string fileName, bool pretty = false);
...
}

or

class JsonSaveContainer: BaseSerializationSaveContainer
{
...
proto external void SetPrettyPrint(bool pretty = false);
}

Details

Severity
Tweak
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Geez changed the task status from New to Reviewed.Apr 4 2023, 11:47 AM
Geez closed this task as Resolved.Apr 12 2023, 11:57 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Resolved for one of the future updates :)