skip to Main Content

how to convert the string to JSON?

private IBeaconListener createIBeaconListener() { return new SimpleIBeaconListener() { @Override public void onIBeaconDiscovered(IBeaconDevice ibeacon, IBeaconRegion region) { Gson gson = new Gson(); String json = gson.toJson(ibeacon); Gson gson2 = new Gson(); String deviceId = "{deviceId : 67814f71b5bdb4d3}"; String json2 = gson2.toJson(obj);…

VIEW QUESTION
Back To Top
Search