Raised This Month: $51 Target: $400
 12% 

Merge two KeyValues trees


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OneMore
Senior Member
Join Date: Feb 2019
Old 12-27-2020 , 08:54   Merge two KeyValues trees
Reply With Quote #1

Hi guys,

Please advise the easiest way to join two KeyValues trees stored in two separate files with the same root name to one KeyValyes structure.

I mean:

Code:
First kv file file1.txt
"root node"
{
   "key1"
   {
      "subkey1" "subvalue1"
   }
}
Code:
Second kv file file2.txt
"root node"
{
   "key2"
   {
      "subkey2" "subvalue2"
   }
}
I want to have:
Code:
new_kv
"root node"
{
   "key1"
   {
      "subkey1" "subvalue1"
   }
   "key2"
   {
      "subkey2" "subvalue2"
   }
}
OneMore is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode