title: Jackson ObjectMapper configuration - error JsonParseException: Unexpected character ('b' (code 98)):
body: <p>I have generated JSON in the following format</p>
  
  <pre><code>[{"empNo":"2390","empName":"JAMES","projects":{"projectId":209,"projectName":"Z560"}}]
  </code></pre>
  
  <p>How do I configure ObjectMapper for the above?</p>
  
  <p>I have declared ObjectMapper as </p>
  
  <pre><code>private static final ObjectMapper om = new ObjectMapper();
  static {
      om.configure(JsonGenerator.Feature.QUOTE_FIELD_NAMES, false);
      om.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
      om.configure(SerializationConfig.Feature.WRITE_DATES_AS_TIMESTAMPS, 
                   true);
      om.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, 
                   false);
      om.getSerializationConfig().setSerializationInclusion
     (JsonSerialize.Inclusion.NON_NULL);
     }
  </code></pre>
  
  <p>However I am still getting the following error</p>
  
  <blockquote>
    <p>com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
        SEVERE: The exception contained within MappableContainerException could not
        be mapped to a response, re-throwing to the HTTP container
        org.codehaus.jackson.JsonParseException: Unexpected character ('b' (code 98)): 
        expected a valid value (number, String, array, object,
        'true', 'false' or 'null') at [Source: java.io.StringReader@1fef0b44; line: 1,
        column: 2]</p>
  </blockquote>
  
  <p>Expected output is </p>
  
  <pre><code>{"empNo":"2390","empName":"JAMES","projectId":"209","projectName":"Z560"}
  </code></pre>