Encode opening brackets in contextDump helper

@kate2753  the jsonFilter function acts on each key value pair, so I figure this is a bit more performant.

@jimmyhchan why's that, couldn't the current context still have opening brackets?