adding details option for json