Encode a Dictionary as a JSON string
JSON encoded representation of the Dictionary
on encoder failure.