Added type element in update (JSON) message

Added the 'type' element in the JSON string and the open JSON string is now a valid JSON string.