change output format to json instead of KV