A simple way is base64 encoding, as Rob said.
But if you are assuming that person is able unpack you ipa/apk file it should not be difficult to him to also decode your base64 json.
So, if you want to use something more secure, you need to use the open ssl plugin. I have successfully used it as below:
local cypher = "RC2-40-CBC" -- The "RC2-40-CBC" complies with the US export because it has less than 64 bits. local encodeKey = "your\_secret\_key" -- encrypt the data local function encrypt(data) local openssl = require "plugin.openssl" local cipher = openssl.get\_cipher (cypher) -- cypher can be "aes-256-cbc", "RC2-40-CBC",... return cipher:encrypt ( data, encodeKey) end -- decrypt the data local function decrypt(data) local openssl = require "plugin.openssl" local cipher = openssl.get\_cipher ( cypher ) return cipher:decrypt ( data, encodeKey ) end