Adding type to json