Added function to get json