| Package | Description |
|---|---|
| pro.fessional.mirana.text |
| Modifier and Type | Method and Description |
|---|---|
JsonTemplate.Obj |
JsonTemplate.Obj.putArr(@NotNull String key,
Consumer<JsonTemplate.Arr> sub)
write `"key":[ ...
|
JsonTemplate.Obj |
JsonTemplate.Obj.putArr(@NotNull String key,
Iterable<?> vs)
write `"key":[v1,...]`
|
JsonTemplate.Obj |
JsonTemplate.Obj.putArr(@NotNull String key,
Object[] vs)
write `"key":[v1,...]`
|
JsonTemplate.Obj |
JsonTemplate.Obj.putObj(Map<?,?> kvs)
write key-value `"k1":...,"k2":...`
|
JsonTemplate.Obj |
JsonTemplate.Obj.putObj(@NotNull String key,
Consumer<JsonTemplate.Obj> sub)
write `"key":{ ...
|
JsonTemplate.Obj |
JsonTemplate.Obj.putObj(@NotNull String key,
Map<?,?> kvs)
write `"key":{"k1":...,"k2":...}`
|
JsonTemplate.Obj |
JsonTemplate.Obj.putVal(@NotNull String key,
Object obj)
write `"key":...`, support
(1) map=`{...}`
(2) arr=`[...]`
(3) primitive arrays=`[...]`
|
| Modifier and Type | Method and Description |
|---|---|
JsonTemplate.Arr |
JsonTemplate.Arr.addObj(Consumer<JsonTemplate.Obj> sub)
write `{...}`
|
static String |
JsonTemplate.obj(Consumer<JsonTemplate.Obj> fun)
Constructs a JSON object `{...}` using a reusable buffer and a building function
|
static String |
JsonTemplate.obj(int capacity,
Consumer<JsonTemplate.Obj> fun)
Constructs a JSON object `{...}` using new buffer and a building function
|
static String |
JsonTemplate.obj(StringBuilder buff,
Consumer<JsonTemplate.Obj> fun)
Constructs a JSON object `{...}` using the assigned buffer and a building function
|
JsonTemplate.Obj |
JsonTemplate.Obj.putObj(@NotNull String key,
Consumer<JsonTemplate.Obj> sub)
write `"key":{ ...
|
Copyright © 2024. All rights reserved.