title: json mapper writerWithDefaultPrettyPrinter for multiple json objects separated by new line
body: <p>I had multi line json Strings separated by new line character. I am using jackson version 1.9.13 For example</p>
  
  <pre><code>{"name":"firstPerson","age":25,"gender":"male"}\n
  {"name":"secondPerson","age":30,"gender":"male"}\n
  {"name":"thirdPerson","age":25,"gender":"male"}\n
  ...............
  </code></pre>
  
  <p>The delimiter may be \n\r or \n based on the operating system using. Basically it is a batch record processing where we save all the contents back to database . But we also save the entire request as well . </p>
  
  <p>My requirement is to get the multiple lines of json object when i use in prettyprint format.Please find the code </p>
  
  <pre><code>import java.io.IOException;
  
  import org.codehaus.jackson.JsonGenerationException;
  import org.codehaus.jackson.JsonParseException;
  import org.codehaus.jackson.map.JsonMappingException;
  import org.codehaus.jackson.map.ObjectMapper;
  import org.codehaus.jackson.map.SerializationConfig;
  
  public class Main {
  
  
      public static void main(String[] args) throws JsonGenerationException, JsonMappingException, JsonParseException, IOException {
          //mapper.configure(Feature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER, true);
          //mapper.configure(Feature.ALLOW_UNQUOTED_CONTROL_CHARS, true);
          ObjectMapper objectMapper = new ObjectMapper();
          objectMapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true);
          String json = "{\"name\":\"firstPerson\",\"age\":25,\"gender\":\"male\"}\n{\"name\":\"secondPerson\",\"age\":30,\"gender\":\"male\"}\n{\"name\":\"thirdPerson\",\"age\":25,\"gender\":\"male\"}";
          System.out.println(objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectMapper.readValue(json, Object.class)));
          System.out.println(json);
      }
  }
  </code></pre>
  
  <p>The out put is :</p>
  
  <pre><code>{
   "name" : "firstPerson",
   "age" : 25,
  "gender" : "male"
  }
  </code></pre>
  
  <p>But i want to display as :</p>
  
  <pre><code>{
      "name" : "secondPerson",
      "age" : 30,
      "gender" : "male"
    }
  {
    "name" : "thirdPerson",
    "age" : 25,
    "gender" : "male"
  }
  {
    "name" : "firstPerson",
    "age" : 25,
    "gender" : "male"
  }
  </code></pre>
  
  <p>I know its not a standard way of json string. json string always enclosed in flower brasis . But as it is already existing system i dont want to break the system to change the code . It can be done simply using any of the string handling functions in java but i need to use jackson and jackson's pretty printer.
  Is there a way to get this done ?</p>
  
  <p>Thanks,
  Eresh  </p>