How do I set the values of part of a JSON object?

@aschoijett I just posted an extension that takes care of that: