How can I merge these two JTokens into one single JToken. This sounds like it should be simple, but can't get my way around it.
{
"data":[
{
"ID":"53a1862000404a304942546b35519ba3",
"name":"Private Approval Process: Draft Document CPL",
"objCode":"ARVPTH"
}]
}
{
"data":[
{
"ID":"53a1838200401324eb1ec66562e9d77d",
"name":"Private Approval Process: Draft Document CPL",
"objCode":"ARVPTH"
}]
}
Thanks for the help!
This is what I have tried so far:
I started by assigning the first object to a variable Jtoken pageOne
then, I tried concatenating it into a second variable JToken allPages
. I have a loop that brings back multiple pages each with three fields. The final goal is to grab each page and create a big JToken
with all of the pages in it.
something like this:
for (int page = 0; page <= recCount; page += 2000)
{
//Get data
pageOne = getJsonData();
allPages.Concat(pageOne);
}
return allPages;