Added method to retrive JSON automatically.