Combine Two Json

As I created Two json from Two different dataTables
json1=JsonConvert.SerializeObject(Datable_Name_1)
json2=JsonConvert.SerializeObject(Datable_Name_2)
Now I need to combine both the json into single json file,I don’t know how to do?

Note:Two datatable doesn’t have any similar field or column names

Hi @agathiyanv

Try this

json1 and json2 are json Arrays and not strings.

json1.Concat(json2)

Refer this xaml

CombineTwoJSON.xaml (10.5 KB)

1 Like


how to solve this error

@agathiyanv

json1 and json2 are Json Arrays.

2 Likes

Thank You @kumar.varun2 it worked well. Can we add heading to that json like if i have two jsons
Json1 is header and Json2 is line item so how to add these heading at the top of json.
So that if i see the json we can identify easily.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.