data class returning json to console