fixed stack json representation
facilitated the change in object types