There should be no space before "]" and "}".