rewrite whole worklogparser to use json and add template feature