(no title)
motrm | 1 year ago
print "{"
print "\"some_state\": \"";
print GlobalState.Something.to_text();
print "\", ";
print "\"count_of_frobs\": ";
print GlobalState.FrobsCounter;
print "}";
Whether it's worth doing this just to rid yourself of a dependency... who knows.
Gigachad|1 year ago
Spivak|1 year ago
You're gonna have a hard time exploiting a text file output that happens to be JSON.
syncsynchalt|1 year ago
masklinn|1 year ago
Using C0 codes is likely safer at least in the sense that you will probably think to check for those and there is no reason whatsoever for them to be found in user data.
hackernudes|1 year ago
fiedzia|1 year ago
.. than use library, because you should not rely on the assumption that next developer adding one more piece to this code will magically remember to validate it with json spec.
maxbond|1 year ago
mananaysiempre|1 year ago