JSFiddle - React, Tailwind, and code Playground
HTML
<input id="inp">
<button id="but">GO!
JavaScript
$("#but").click(function () {
window.inp = document.getElementById('inp').value;
//alert(inp);
var mydata = '{"city":"Саратов: Заводской р-н","street":"ваппав","home":"","latitude":"51.468686","longitude":"45.921199","price2":"","price3":"","s0":"","name":"Серёжа","email":"[email protected]","phone":"123456789","object_type":"новостройка","komplex":"апап","builder":"УМ-24","walls":"блочный","floors":"3","expl":"2016 - II","text":"ап","sheetUrl":"https://docs.google.com/spreadsheets/d/10dpOMhbGfOeho4m2wS3ttLLbaQ9WWnTKgRAqfokfz5s/edit#gid=1291669725","sheetName":"Улеши"}';
;
var mytable = '{"sheetName":"Улеши","sheetUrl":"https://docs.google.com/spreadsheets/d/10dpOMhbGfOeho4m2wS3ttLLbaQ9WWnTKgRAqfokfz5s/edit#gid=1291669725","sheetSite":"https://docs.google.com/spreadsheets/d/10dpOMhbGfOeho4m2wS3ttLLbaQ9WWnTKgRAqfokfz5s/pubhtml/sheet?&gid=1291669725","sheetW":342,"sheetH":231}';
var result = inp
.replace(/pastemydata/g, mydata)
.replace(/pastemytable/g, mytable)
;
alert(result);
});