Through some research I have found that obfuscation won't block hackers from retrieving your .json file, but I'd like to have at least a level of obfuscation that deters some people. I ran into a npm package called bson that creates binaries for a json format. Can you call this obfuscation to a degree? I am also at a dilemma because my .json files serve a WebGL gaming engine via iframe.
Unity developers obfuscates most of their code via third-party obfuscation tools in the Unity Asset store. It is than rendered into WebGL. I was wondering if some similar tools that helps me achieve obfuscation of .json this through webGL frameworks like babylon.js and three.js
My main goal is just to obfuscate when a user inspects the incoming .json file in the network tab.
json
module comes to mind, though), but given there are literally browser extensions that allow to format JSON data, I don't see how your obfuscation would provide any kind of deterrence. After all the JSON still needs to be readable by some program, right? So another program could also simply parse the JSON data and be instructed to dump it pretty-printed.