package pidgio-yojson

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file pidgio_yojson.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(* Copyright (c) 2026, Cargocut and the Pidgio developers.
   All rights reserved.

   SPDX-License-Identifier: BSD-3-Clause *)

include
  Pidgio.Json
    (struct
      type t = Yojson.Basic.t

      let to_string x = Yojson.Basic.to_string x

      let from_string s =
        try Some (Yojson.Basic.from_string s) with
        | _ -> None
      ;;
    end)
    (Pidgin.Driver.Yojson)
    (Pidgin.Driver.Yojson)