added logging when calling json_unpack