What is the method for adding a new field to a JSON object in JavaScript? I have seen examples using arrays, but I specifically need it with a JSON object.
Essentially, how can I transform this:
{
"hello":"this is cool"
}
into this:
{
"hello":"this is cool",
"hi":"i know"
}