added endsWith json api