debug obj to array