You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can do this, although it will hurt performance, because the writer will have to calculate at runtime many parts that now are constant. Currently, we have the prefix in '{"key":'+value already precomposed. And we'd have to cut the constant into three bits.
Do you need this for debugging only? In that case roundtripping through the haxe.Json will do :D
On a more serious note, a streaming json formater might actually be a useful tool, even beyond tink_json. It would just keep a stack for the current state and insert white space at the appropriate places as data passes through. So it wouldn't have to ever create the actual values in memory.
as in std lib you can do
haxe.Json.stringify(obj, '\t')
to make the output tab-indented.The text was updated successfully, but these errors were encountered: