$.ajax({
        url:'${pageContext.request.contextPath }/rest/jsonBody',
        type:'POST',
        dataType:'json',
        contentType:'application/json;charset=UTF-8',
        data:JSON.stringify(data),
        success:function(data, status){
            console.log(data);
        }
    });