title: Intercept and override body with OHttp3
body: <p>I intercept a request and I override the body response, this works but I have a problem with <code>ResponseBody.create</code>, the final <strong>body</strong> is </p>
  
  <blockquote>
    <p>[text={"field1":"value1"}"}]</p>
  </blockquote>
  
  <p>And I need that the body be:</p>
  
  <blockquote>
    <p>{"field1":"value1"}"}</p>
  </blockquote>
  
  <p>I do not understand Why my body have "<strong>[test=</strong>" at the beginning.</p>
  
  <p>This is my interceptor (contentType is "<em>application/json;charset=UTF-8</em>"):</p>
  
  <pre><code>public class MockInterceptor implements Interceptor {
  
      @Override
      public Response intercept(Chain chain) throws IOException {
          //I want to intercept the url "/user/locations"
          final Request request = chain.request();
          final Response response = chain.proceed(request);
  
          if (response.request().toString().indexOf("/user/locations") &gt; 0) {
              final Response newResponse = new Response.Builder()
                      .body(ResponseBody.create(response.body().contentType(), "{\"field1\":\"value1\"}"))
                      .code(200)
                      .protocol(Protocol.HTTP_1_1)
                      .request(response.request())
                      .message("Intercepted!")
                      .build();
  
              return newResponse;
          } else {
              return response;
          }
       }
  </code></pre>
  
  <p>Any idea?.</p>
  
  <p>Thanks.</p>