public JSONObject toJSON() {
        JSONObject obj = new JSONObject();
        if (ktivMale.length() != 0) {
            obj.accumulate("ktivmale", ktivMale);
        }

        if (!"".equals(pronunciation)) {
            obj.accumulate("pronunciation", pronunciation.replaceAll("\n", ""));
        }

        if (!"".equals(lexicalClass)) {
            obj.accumulate("lexicalclass", lexicalClass.replaceAll("\n", ""));
        }

        if (!"".equals(gender)) {
            obj.accumulate("gender", gender.replaceAll("\n", ""));
        }

        if (!"".equals(rootWord)) {
            obj.accumulate("rootword", rootWord.replaceAll("\n", ""));
        }

        if (!"".equals(form)) {
            obj.accumulate("form", form.replaceAll("\n", ""));
        }

        if (!"".equals(building)) {
            obj.accumulate("building", building.replaceAll("\n", ""));
        }

        if (!"".equals(netiyot)) {
            obj.accumulate("netiyot", netiyot.replaceAll("\n", ""));
        }

        if (!"".equals(derechTatzura)) {
            obj.accumulate("derechtatzura", derechTatzura.replaceAll("\n", ""));
        }

        return obj;
    }