[techno: java spring boot]
there is a file .txt containing :
{ "foo": "one" }
{ "bar": "two" }
- In java, is there a way to transform the content file in json like this ? :
[
{ "foo": "one" },
{ "bar": "two" }
]
- Or get each line via a loop
loop(contentFile as line) {
// line = { "foo": "one" }
}