Using a hacky regex to remove braces from partial JSON bits