Currently i3_to_json forcibly writes JSON files. It could be nice if the file writeout was optional and a (list of) JSON string(s) could be returned.
This could be achieved by appending the JSON string to the P-frame, and write it out using a custom writer module. Conversely, the optional I3Writer output would have to exclude such key from the output (which is perfectly supported).
Appending to a frame a JSON representation of itself is not very elegant and somewhat inception-ish, but should get the job done (?)
Currently
i3_to_json
forcibly writes JSON files. It could be nice if the file writeout was optional and a (list of) JSON string(s) could be returned.This could be achieved by appending the JSON string to the P-frame, and write it out using a custom writer module. Conversely, the optional
I3Writer
output would have to exclude such key from the output (which is perfectly supported).Appending to a frame a JSON representation of itself is not very elegant and somewhat inception-ish, but should get the job done (?)