This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,096 Users
  • 2,269,775 Discussions
  • 7,916,823 Comments

Discussions

Unable to append new JSON file using File Adapter

Hi Expert,

I am working on one requirement where I have to write a JSON file using File Adapter. All contents should be appended in a single file. I am using File adapter with JSON interchange format.

{

 "empId" : 123,

 "empName" : "abc" 

}{

 "empId" : 345,

 "empName" : "def" 

}{

 "empId" : 456,

 "empName" : "xyz" 

}


Here }{ are coming in same line which is causing a problem. Is there a way so new JSON file will be written to new line like follows.

{

 "empId" : 345,

 "empName" : "def" 

}

{

 "empId" : 456,

 "empName" : "xyz" 

}