title: Replacement of new JacksonFactory to get google credential in Java
body: <p>I'm trying to authenticate with google-api from a server with the following "old" code:</p>
  
  <pre><code>GoogleTokenResponse tokenResponse =
                  new GoogleAuthorizationCodeTokenRequest(TRANSPORT, JSON_FACTORY,
                          CLIENT_ID, CLIENT_SECRET, code, "postmessage").execute();
          // Create a credential representation of the token data.
          GoogleCredential
                  credential = new GoogleCredential.Builder()
                  .setJsonFactory(JSON_FACTORY)
                  .setTransport(TRANSPORT)
                  .setClientSecrets(CLIENT_ID, CLIENT_SECRET).build()
                  .setFromTokenResponse(tokenResponse);
  </code></pre>
  
  <p>From old releases of google-api for java, JSON_FACTORY was built doing something like this:</p>
  
  <pre><code>JsonFactory JSON_FACTORY = new JacksonFactory();
  </code></pre>
  
  <p>But since i've updated to version 1.15.0-rc, JacksonFactory is not found. Looks like it has been refactored or removed, but i can't find any example to replace this line of code.</p>
  
  <p>What should i use? Implementation of JsonFactory for sure, but some standard implementation may already exist? </p>