|
|
|
|
|
by Evbn
5046 days ago
|
|
Gson solves that problem by parsing Json to objects or untyped hashmaps. It's OK to mix a mini language into your program. ImmutableMap.Builder gives you almost syntax-free hash map creation. You can use constructors in a loop or Lists.transfrom for data-driven construction. Not exactly like JavaScript, but gets close. |
|