Hi,
I just started to create a simple json/http service in OCaml using Opium, just for fun and learning. One issue i bump into is the mapping between Yojson.t and Yojson.Safe.t. I did find a Yojson.Safe.to_basic, but that one provides me a Yojson.Basic.t, not a Yojson.t`. And there is no to_safe or from_basic that gives me a Yojson.Safe.tfrom aYojson.Basic.t`.
I am quite new to OCaml, so i lack an understanding of common patterns. What is the usual approach for this?
This expression has type Yojson.Safe.t but an expression was expected of type Yojson.t
eelco