Re #122 Added support for JSON output on the front-end.