`'x.method { y: "z" }'` is not valid syntax, just as `method { y: 1 }` is not. The operators are a valid concern, but there are only a handful of those, so we can easily handle them. The current regexp approach is flawed, since string arguments containing `{}`, might cause false positives.