changes to JSON

change default new state to pending and set device_type to empty string