Try and parse the decrypted bytes as JSON. If we can't parse it, just return the utf-8 string
external String getDataToEmit(Uint8List bytes);