debugging: adding details option for json