Added JSON/HTML responses to LDA API.