tortus / elm-array-2d / Array2D.Json

JSON decoding/encoding utilities for Array2D.

Decoding 2D arrays

decoder : Json.Decode.Decoder a -> Json.Decode.Decoder (Array2D a)

JSON decoder to turn nested arrays into an Array2D.

If the rows are jagged, all rows will be truncated to the same length as the shortest row!