Open sonvp opened 7 years ago
hmm...
+1, personally interested in this combined with kotlin data classes
+1 for Kotlin data classes in one file. Thats how I generally create JSON domain classes due to Kotlins brevity.
+1 😄
+1 and insert generated code to selected place
+1 It is annoying to create pojos for multi-depths structure json. .
{ "label": "vcpu/vmem/ssd/ssdb/hdd", "unit": "Core/GB/TiB/TiB/TiB", "graph": { "time": [ 1719108000000, 1719194400000], "regions": ["yz"," jsy"], "series": ["Independent", "Dedicated"], "values": [ { "region": "yz", "datas": [ { "type": "Independent", "total": [ 5, 5 ], "daily": [ 5, 5], "released": [ 5,5 ] }, { "type": "Dedicated", "total": [ 5, 5 ], "daily": [ 5, 5], "released": [ 5,5 ] } ] }, { "region": "jsy", "datas": [ { "type": "Independent", "total": [ 5, 5 ], "daily": [ 5, 5], "released": [ 5,5 ] }, { "type": "Dedicated", "total": [ 5, 5 ], "daily": [ 5, 5], "released": [ 5,5 ] } ] } ] } }
nested class would be better.
Hi @robohorse . Instead of create separate file for each object. I want to output only one class object like the example below.
Can you support function above. Thank