Added JSON support. Simplified interface