add type to json return

When getting a deal, its type is returned