title: Unable to split json response?
body: <p>This is my method</p>
  
  <pre><code>   public String buildJsonData(String username , String message)
      {
     JsonObject jsonObject = Json.createObjectBuilder().add("Username",username+":"+message).build();
     StringWriter stringWriter = new StringWriter();
     try(JsonWriter jsonWriter = Json.createWriter(stringWriter))
     {
    jsonWriter.write(jsonObject);
    }
    catch(Exception e)
    {
  System.out.print("buildJsonData ="+e);
     }
    return stringWriter.toString();
     }
  </code></pre>
  
  <p>If i input username as <code>john</code> and message as <code>hello</code>.I get output as</p>
  
  <blockquote>
    <p>{"Username":"john:hello"}</p>
  </blockquote>
  
  <p>But I want output without braces and doublequotes I want my output as </p>
  
  <blockquote>
    <p>John:hello</p>
  </blockquote>
  
  <p>I tried to split it using array[0] but didn't get the output.Is it possible in json to get my desired output(without braces and quotes).</p>