P11_helpersSourceval of_json_string :
typename:string ->
(string -> 'a) ->
Yojson.Safe.t ->
('a, string) Result.resultBuild a of_json function out of a of_string function. The typename is used for the error message.
Remove trailing zeros and spaces, and quote the result.