JSON data is just a string, so it will depend on what programming language you're using. For example in Python you can use the binascii.hexlify call, though you need to check whether your string is a binary string or a Unicode string and might need to add some extra stage.