My JSON structure will be as follows -
[
"string": {
//Data obtained from GO Struct, contains various strings and ints
},
"string2": {
// Data obtained from GO Struct, contains various strings and int
}
]
Is there a way to store a struct as a JSON and more importantly, can I write records (elements in main array) one by one?
Like how you can write a line to a CSV file.