add logtype field in json. make parsing better.