I am working on android studio.
I have two json arrays such as...
jsonArray1:
[
{"file":"ay.m4a", "version":"5"},
{"file":"kt.m4a", "version":"5"}
]
jsonArray2:
[
{"file":"hh.m4a", "version":"7"},
{"file":"sh.m4a", "version":"7"}
]
Then, I want to merge these arrays like this...
jsonArrayMerged:
[
{"file":"ay.m4a", "version":"5"},
{"file":"kt.m4a", "version":"5"},
{"file":"hh.m4a", "version":"7"},
{"file":"sh.m4a", "version":"7"}
]
How can I do this?
putinto a newly created array