How to use the @glennsl/bs-json/src/Json_decode.bs.js.map function in @glennsl/bs-json

To help you get started, we’ve selected a few @glennsl/bs-json examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phated / mxdbmobile / src / card / Stat.js View on Github external
function decoder(json) {
  return Json_decode.map(fromRecord, (function (json) {
                return /* record */[
                        /* type_ */Json_decode.field("type", Json_decode.string, json),
                        /* rank */Json_decode.field("rank", Json_decode.$$int, json)
                      ];
              }), json);
}
github rebench / rebench.github.io / src / model / Model.bs.js View on Github external
var test = Json_decode.either((function (param) {
        return Json_decode.map((function (param) {
                      return /* record */[
                              /* id */param[0],
                              /* language */param[1],
                              /* code */param[2]
                            ];
                    }), (function (param) {
                      return Json_decode.tuple3(id, language, Json_decode.string, param);
                    }), param);
      }), (function (param) {
        return Json_decode.map((function (param) {
github phated / mxdbmobile / src / card / BattleStat.js View on Github external
function decoder(json) {
  return Json_decode.map(fromStatList, StatList$Mxdbmobile.decoder, json);
}