Added correct json to edit and create websocket functions