Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for toJsonString (0.25 seconds)

  1. tests/preload_suits_test.go

    		t.Error(err)
    	}
    
    	if string(toJSONString(got)) != string(toJSONString(want)) {
    		t.Errorf("got %s; want %s", toJSONString(got), toJSONString(want))
    	}
    }
    
    type LevelA1 struct {
    	ID    uint
    	Value string
    }
    
    type LevelA2 struct {
    	ID       uint
    	Value    string
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Thu Jun 05 11:34:13 GMT 2025
    - 30.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

        public void testToJsonString() {
            // Test toJsonString method
            String[] text = { "json", "test" };
            String[][] readings = { { "json" }, { "test" } };
            String[] tags = { "tag1" };
    
            SuggestItem item = new SuggestItem(text, readings, null, 0L, 10L, 1.0f, tags, null, null, SuggestItem.Kind.QUERY);
    
            String json = item.toJsonString();
    
            assertNotNull(json);
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemBoundaryTest.java

            assertEquals(2, result.length);
        }
    
        // ============================================================
        // Tests for toJsonString edge cases
        // ============================================================
    
        @Test
        public void test_toJsonString_specialCharactersEscaped() {
            String[] text = { "test\"with\"quotes" };
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Jan 17 05:10:37 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

        }
    
        /**
         * Converts the suggest item to a JSON string.
         * @return The JSON string representation of the suggest item.
         */
        public String toJsonString() {
            return SuggestItemSerializer.toJson(this);
        }
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/suggest/index/operations/ContentIndexingOperations.java

            logger.info(msg);
            if (logger.isDebugEnabled()) {
                for (final SuggestItem item : items) {
                    logger.debug("[{}] {}", type, item.toJsonString());
                }
            }
        }
    
        /**
         * Gets the contents parser.
         *
         * @return The contents parser
         */
        public ContentsParser getContentsParser() {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 21.7K bytes
    - Click Count (0)
Back to Top