Avatar of Jay Roy
Jay Roy
Flag for United States of America

asked on 

breaking a JSON file into two files

hi guys

I have a layout file in JSON which is 700 lines


layout_project.JSON

  "trade:Manager":{
         "id":"trade:Manager",
         "name":"Manager",
         "render":[
            "Text"  
         ],
         "renderAs":"Text",        
         "key":"TradeId",        
         "value":"",        
         "visible":true,
         "events":[

         ],
         "req":"/app/tradeApp.do",
         "reqType":"json",
         "reqMethod":"GET",
         "width":150,
         "height":20,
         "inc":[

         ],
       
      },
  "trade:Client":{
         "id":"trade:Client",
         "name":"Client",
         "render":[
            "Text"  
         ],
         "renderAs":"Text",        
         "key":"TradeId",        
         "value":"",        
         "visible":true,
         "events":[

         ],
         "req":"/app/tradeApp.do?client="Paula",
         "reqType":"json",
         "reqMethod":"GET",
         "width":150,
         "height":20,
         "inc":[

         ],
       
      },
....and so on


My requirment is
i want to break the one json file into two JSON files each containing 350 lines

layout_project.JSON  contains layout_project1.JSON (350 lines) + layout_project2.JSON (350 lines)

Is that possible?

thanks
JavaScript

Avatar of undefined
Last Comment
leakim971

8/22/2022 - Mon