use square brackets with output format '--brackets' (for cleaner escaping and consistency with decoder tree output)