Transform a ListBucketResult from AWS to JSON.