Hi there,

I have a question about the Tserializer and the TJSONProtocol offered by Thrift.
I'm using Thrift to implement a RPC between applications written in
different programming languages.
I need to add new functionality in my solution implementing an
integrity check on the data exchanged between client and server.

The idea is to compute an integrity on the data (defined in the IDL
Thrift) exchanged between sender and clients.
The integrity tag will be computed by the sender and re-compute by the
receiver. To ensure the integrity the tag computed by the receiver
shall match with the one received from the sender.

For structured data types, I want to leverage on the Tserializer based
on TJSONProtocol to obtain a JSON string (representing the data to
protect) to provide as input to the algorithm for integrity
calculation.

Is it correct to assume that the JSON string resulting from conversion
is always the same (assuming to have the same input data) across
different programming languages?
I mean, can I assume that the behaviour of TSerializer (based on
TJSONProtocol) is the same across the different implementations of
Thrift libraries available for the different programming languages?

Thanks in advance
Best Regards

Reply via email to