Added JSON-decoding for terminal.