Generating JSON. Needs binding to the board view.