Technical opinion: JSON in Make
In Make, when I want to pass variables between nodes using JSON, I always run into the same situation:
- Create JSON generates a string in JSON format.
- Parse JSON converts that same string back into internal variables so it can be used in the next node.
This creates a point of friction. The JSON format already defines data types by itself (number, string, boolean). There shouldn’t be a need to declare a “structure” again to reinforce what is already implicit.
In practice, you end up doing double work: first defining the items, and then parsing what you just declared.
The consequence is that, to keep a clean flow, you almost always need to chain Create JSON + Parse JSON, which adds steps that could be simplified.
From a technical point of view, it would be more efficient if a single module offered both options: output as a string or output as a bundle of variables, depending on the need.
It’s just a technical opinion, but I think it could open an interesting debate on whether this design in Make is really the clearest and most useful for users who work with JSON on a regular basis.
Opinión técnica: JSON en Make
En Make, cuando quiero pasar variables entre nodos usando JSON, me encuentro siempre con la misma situaciĂłn:
- Create JSON genera un string en formato JSON.
- Parse JSON convierte ese mismo string nuevamente en variables internas para poder utilizarlas en el siguiente nodo.
Esto plantea un punto de fricciĂłn. El formato JSON ya define por sĂ mismo los tipos de datos (number, string, boolean). No harĂa falta declarar de nuevo una “estructura” para reforzar lo que ya está implĂcito. En la práctica, uno termina haciendo doble trabajo: primero definir los items y luego volver a parsear lo que uno mismo acaba de declarar.
La consecuencia es que, para mantener un flujo limpio, casi siempre hay que encadenar Create JSON + Parse JSON, lo que añade pasos que podrĂan simplificarse. Desde un punto de vista tĂ©cnico, serĂa más eficiente que un Ăşnico mĂłdulo ofreciera ambas posibilidades: salida como string o salida como bundle de variables, segĂşn necesidad.
Es solo una opinión técnica, pero creo que puede abrir un debate interesante sobre si este diseño en Make es realmente el más claro y útil para usuarios que trabajan con JSON de forma habitual.