private JsonElement serializeScenes(@NonNull final List<Scene> scenes) {
        final JsonArray scenesArray = new JsonArray();
        for (Scene scene : scenes) {
            JsonObject sceneObj = new JsonObject();
            sceneObj.addProperty("name", scene.getName());
            final JsonArray array = new JsonArray();
            for (Integer address : scene.getAddresses()) {
                array.add(MeshAddress.formatAddress(address, false));
            }
            sceneObj.add("addresses", array);
            sceneObj.addProperty("number", String.format(Locale.US, "%04X", scene.getNumber()));
            scenesArray.add(sceneObj);
        }
        return scenesArray;
    }
Returns serialized json element containing the scenes

@param scenes Group list
@return JsonElement
mesh/src/main/java/no/nordicsemi/android/mesh/MeshNetworkDeserializer.java