Skip to content

Commit 37194c6

Browse files
committed
Fix json formatting
1 parent ea9b661 commit 37194c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/get-scriptpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def save_to_file(self, context, answers):
5555
"""Save the results to a JSON file."""
5656
try:
5757
# Format answers as a list of dictionaries for JSON output
58-
json_data = [{"sAMAccountName": answer[0], "scriptPath": answer[1]} for answer in answers]
58+
json_data = [{"sAMAccountName": answer["sAMAccountName"], "scriptPath": answer["scriptPath"]} for answer in answers]
5959

6060
# Save the JSON data to the specified file
6161
with open(self.outputfile, "w") as f:

0 commit comments

Comments
 (0)