change the method of fetching jsoncode