@Override
  public String expand(Map<String, ?> variables) {
    String expanded = super.expand(variables);
    if (this.json) {
      /* restore all start and end tokens */
      expanded = expanded.replaceAll(JSON_TOKEN_START_ENCODED, JSON_TOKEN_START);
      expanded = expanded.replaceAll(JSON_TOKEN_END_ENCODED, JSON_TOKEN_END);
    }
    return expanded;
  }
Create a new Body Template.

@param template to parse.
@param charset to use when encoding the template.
@return a Body Template instance.
core/src/main/java/feign/template/BodyTemplate.java