Function casper_types::json_pretty_print
source ·
[−]Expand description
Serializes the given data structure as a pretty-printed String
of JSON using
serde_json::to_string_pretty()
, but after first reducing any large hex-string values.
A large hex-string is one containing only hex characters and which is over MAX_STRING_LEN
.
Such hex-strings will be replaced by an indication of the number of chars redacted, for example
[130 hex chars]
.