From 532dad0ce5c7ba5eefcece76b4f8841a87df1619 Mon Sep 17 00:00:00 2001 From: aserrador Date: Tue, 21 Oct 2025 12:34:26 -0500 Subject: [PATCH] fix: Se abstrae metodo load_json --- Api/tools.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Api/tools.py diff --git a/Api/tools.py b/Api/tools.py new file mode 100644 index 0000000..df7289e --- /dev/null +++ b/Api/tools.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python3 +import json + + +def load_json(file_path): + with open(file_path, 'r') as filejson: + return json.load(filejson)