ligo/src/lib_data_encoding/bson.ml
Raphaël Proust 56fbc5267d Data_encoding: split implementation
In an effort to keep a clean commit history, the interface is unchanged.
2018-05-03 12:27:17 +08:00

15 lines
818 B
OCaml

(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2018. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
type bson = Json_repr_bson.bson
type t = bson
let construct e v = Json_repr_bson.Json_encoding.construct (Json.convert e) v
let destruct e v = Json_repr_bson.Json_encoding.destruct (Json.convert e) v