Hi,
I need the JSonGenerator to produce JSon like shown below. How can I achieve these examples with list/map/type? I sometimes need 5 or 6 variables within a record, so I though a type would be perfect for this. It would be nice to have a JSonBuilder object .
1st example:
{"Key":"Value","Key2":"Value2"}
2nd example:
[{"Record":"1", "Key":"Value1"},{"Record":"2", "Key":"Value2"}]
3rd example:
[{"Records":
[{"Record":"1","Key":"Value1"},
{"Record":"2","Key":"Value2"}],
"ResponseTime":"\/Date(123)\/"
}]
Greetings,
Sigurd
I need the JSonGenerator to produce JSon like shown below. How can I achieve these examples with list/map/type? I sometimes need 5 or 6 variables within a record, so I though a type would be perfect for this. It would be nice to have a JSonBuilder object .
1st example:
{"Key":"Value","Key2":"Value2"}
2nd example:
[{"Record":"1", "Key":"Value1"},{"Record":"2", "Key":"Value2"}]
3rd example:
[{"Records":
[{"Record":"1","Key":"Value1"},
{"Record":"2","Key":"Value2"}],
"ResponseTime":"\/Date(123)\/"
}]
Greetings,
Sigurd