public static String trySerialize(final Object jsonSerializable) {
        final StringWriter writableDestination = new StringWriter();
        try {
            Jsoner.serialize(jsonSerializable, writableDestination,
                    EnumSet.of(SerializationOptions.ALLOW_JSONABLES, SerializationOptions.ALLOW_FULLY_QUALIFIED_ENUMERATIONS,
                            SerializationOptions.ALLOW_INVALIDS_NOOP));
        } catch (final IOException caught) {
            /* See StringWriter. */
        }
        String answer = writableDestination.toString();
        if (answer != null && answer.contains("SerializationOptions.ALLOW_INVALIDS_NOOP")) {
            answer = null;
        }
        return answer;
    }
@Test
    public void testTrySerialize() throws Exception {
        String s = Jsoner.trySerialize("Hello World");
        Assertions.assertEquals("\"Hello World\"", s);

        s = Jsoner.trySerialize(123);
        Assertions.assertEquals("123", s);

        s = Jsoner.trySerialize(true);
        Assertions.assertEquals("true", s);

        s = Jsoner.trySerialize(new Date());
        Assertions.assertNull(s);

    }