If it's to insert "three": "three", before the first } line that follows a object = { line, then that could be:
sed '
/^object = {$/,/^}$/{
/^}$/i\
"three": "three",
}'
Or same with awk:
awk '$0 == "object = {", $0 == "}" {
if ($0 == "}") print " \"three\": \"three\""
}
{print}'
Or:
awk '$0 == "object = {", $0 == "}" && $0 = " \"three\": \"three\"\n" $0 {};1'
Relying on the fact that that $0 = ... assignment will always return true as guaranteed to be neither the empty string nor any representation of zero.