For now, I’m using JSON because I’m paranoid about code injection attacks around print/read.
I’ve seen a handful of libraries, but each one claims to protect against a different kind of attack, so that makes me think they might be vulnerable to the ones they don’t mention.
Edit: I’m not sure if I understood this submission properly, but I’ll leave my question up since I’m still interested.
Edit again: looks like someone asked this exact question on SO: https://stackoverflow.com/questions/34813891/how-do-you-secu...