Added 'type' attribute to JSON interface