diff --git a/json-core/src/main/java/io/avaje/json/simple/SimpleMapper.java b/json-core/src/main/java/io/avaje/json/simple/SimpleMapper.java index fd0d22ab..96681e9c 100644 --- a/json-core/src/main/java/io/avaje/json/simple/SimpleMapper.java +++ b/json-core/src/main/java/io/avaje/json/simple/SimpleMapper.java @@ -43,23 +43,6 @@ static Builder builder() { return new DSimpleMapperBuilder(); } - /** - * Return the property names as PropertyNames. - *

- * Provides the option of optimising the writing of json for property names - * by having them already escaped and encoded rather than as plain strings. - */ - PropertyNames properties(String... names); - - /** - * Return a Type specific mapper for the given JsonAdapter. - * - * @param customAdapter The custom adapter to use. - * @param The type of the class to map to/from json. - * @return The Type specific mapper. - */ - Type type(JsonAdapter customAdapter); - /** * Return a mapper for any json content. */ @@ -109,6 +92,23 @@ static Builder builder() { */ List fromJsonArray(String json); + /** + * Return the property names as PropertyNames. + *

+ * Provides the option of optimising the writing of json for property names + * by having them already escaped and encoded rather than as plain strings. + */ + PropertyNames properties(String... names); + + /** + * Return a Type specific mapper for the given JsonAdapter. + * + * @param customAdapter The custom adapter to use. + * @param The type of the class to map to/from json. + * @return The Type specific mapper. + */ + Type type(JsonAdapter customAdapter); + /** * Build the JsonNodeMapper. */ diff --git a/json-node/src/main/java/io/avaje/json/node/JsonNodeMapper.java b/json-node/src/main/java/io/avaje/json/node/JsonNodeMapper.java index a9f1844f..2a9d1033 100644 --- a/json-node/src/main/java/io/avaje/json/node/JsonNodeMapper.java +++ b/json-node/src/main/java/io/avaje/json/node/JsonNodeMapper.java @@ -42,23 +42,6 @@ static Builder builder() { return new NodeAdapterBuilder(); } - /** - * Return the property names as PropertyNames. - *

- * Provides the option of optimising the writing of json for property names - * by having them already escaped and encoded rather than as plain strings. - */ - PropertyNames properties(String... names); - - /** - * Return a Type specific mapper for the given JsonAdapter. - * - * @param customAdapter The custom adapter to use. - * @param The type of the class to map to/from json. - * @return The Type specific mapper. - */ - SimpleMapper.Type type(JsonAdapter customAdapter); - /** * Return a NodeMapper for ANY json content. *

@@ -166,6 +149,23 @@ static Builder builder() { */ JsonAdapter adapter(Type type); + /** + * Return the property names as PropertyNames. + *

+ * Provides the option of optimising the writing of json for property names + * by having them already escaped and encoded rather than as plain strings. + */ + PropertyNames properties(String... names); + + /** + * Return a Type specific mapper for the given JsonAdapter. + * + * @param customAdapter The custom adapter to use. + * @param The type of the class to map to/from json. + * @return The Type specific mapper. + */ + SimpleMapper.Type type(JsonAdapter customAdapter); + /** * Build the JsonNodeMapper. */