Added JSON support for outputing readall