Hash computes the SHA-256 hash of the provided JSON data.
The function ensures that different representations of the same JSON data
(e.g., with fields in different orders) will produce the same hash.
This is achieved by parsing the input JSON into a normalized format before hashing.