I am hoping to get an answer to this [similar question](https://stackoverflow.com/questions/22790980/ajax-post-returning-render-template-in-flask):

I have a jQuery form that sends JSON data to a certain URL that is served by Flask:

```
    <div id="form">      
      <form id="send">        
        <input type="submit" value="Continue" >
      </form>
    </div>

jQuery(document).on('ready', function() {
        jQuery('form#send').bind('submit', function(event){
        event.preventDefault();

        var form = this;
        json = geojson.write(vectors.features);

        $.ajax({
            type: "POST",
            contentType: 'application/json',
            url: $SCRIPT_ROOT + "/create",
            dataType: "json",
            success: function(){},
            data: json

        });
    });
});

```

On the Flask side, I have a simple function that renders an HTML page displaying the JSON object:

```
@app.route('/create', methods=['POST'])
def create():
    content = request.json
    print content
    return render_template('string.html', string = content)

```

I know the JSON is being passed, because I can see it printed in the console running the Flask server:

![console print](https://i.stack.imgur.com/cJsK9.png)

**The problem is that the template is rendered as part of the response of the Ajax request, but I want the template to be rendered as a new html page:**

![response of request](https://i.stack.imgur.com/GpR8p.png)