Class KanbanJson

java.lang.Object
com.codename1.kanban.KanbanJson

public final class KanbanJson extends Object

Saves a board as JSON and reads it back.

DefaultKanbanModel model = new DefaultKanbanModel();
model.addColumn(new KanbanColumn("todo", "To do"));
KanbanBoard board = new KanbanBoard(model);

String json = KanbanJson.toJson(board.getModel());
Storage.getInstance().writeObject("board", json);
// later
board.setModel(KanbanJson.fromJson(json));

The document holds the lanes, and the columns in order, each with its cards in order. A card's user data is the application's own object and is left out unless a UserDataCodec says how to write it.