Fix JSON rendering
Update attributes spec record: type must have a name