Use (Transaction|LazyValue).get_json() instead of logjson.logjson_to_json() and ...