It is a weird situation really and this is not the first time this topic has been discussed in the forums.
The problem is that even if I serialize the string with prety json format, Unity will still remove all spaces and paragraph characters, thus effective removing the prety json formating. I have tried a lot in the past to force the serialization into staying as a prety json instead of being re-formatted to a single line so that it is easy to diff in source control, but to no avail :/ No matter what I try, Unity will re-format the string into a single line.
It is certainly something I want to somehow solve if at all possible, considering of course that the serialization will need to remain in json data format and can not really be changed at this time, mainly due to maintaining backwards compatibility, but I have not yet found a solution unfortunately due the reason stated above.
Thank you.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.