Added JSON support.