Pop singer and former "X Factor" judge Demi Lovato will play a New York City-based struggling artist and friend of Lea Michele's character on the upcoming season of "Glee."