**[gd-estrepetov](https://jira.spring.io/secure/ViewProfile.jspa?name=gd-estrepetov)** opened **[BATCH-2752](https://jira.spring.io/browse/BATCH-2752?redirect=false)** and commented JsonFileItemWriter adds unnecessary "," when data is written in chunks to json file. Code to reproduce: ```java List<String> firstList = Arrays.asList("one", "two"); List<String> secondList = Arrays.asList("three", "four"); JsonFileItemWriter<String> writer = new JsonFileItemWriterBuilder<String>() .name("writer") .resource(new FileSystemResource("test.json")) .jsonObjectMarshaller(new JacksonJsonObjectMarshaller<>()) .build(); writer.open(new ExecutionContext()); writer.write(firstList); writer.write(secondList); writer.close(); ``` Result: ```java [ "one", "two", "three", , "four" ] ``` --- **Affects:** 4.1.0.M3 **Referenced from:** pull request https://github.com/spring-projects/spring-batch/pull/636 **Backported to:** [4.1.0.RC1](https://github.com/spring-projects/spring-batch/milestone/96?closed=1)