If I have a classic ASP response in the format:
someJsFunctionName({"0":{"field1":0,"field2":"","field3":0,"field4":2,"field5":1,"field6":1}});
that is built with
response.write "someFunctionName("
someMethod(param1, param2).Flush
response.write ");"
If I want to insert a new field to the response
someJsFunctionName({"0":{"field1":0,"field2":"","field3":0,"field4":2,"field5":1,"field6":1, "field7":2}});
Would I be able to call a method similar to
response.replace("}});", "\"field7\":2}});")
?
Or would I have to clear the entire response to write a new string into it?
Would I have to keep track of the result of someMethod(param1, param2).Flush
, modify that string before writing it to the response?