Constrain signatures to Yojson.Safe.json (fixes #2).