serialize object as Map instead of List