Convert List To Dictionary Javascript Array