loading .json file in tcl

Viewed 29

I have quite a large (30 kb) .json file, that I want to read inside a script. Till now I just copied the content of the file in my script, but that leads to very ugly code.

This is the code

set allAttrib { <copyOfContent>)
set allAttrib_d [::json::json2dict $allAttrib]

I am sure this should not be that hard, but I do not manage to find an answer somewhere.

Thanks in advance

1 Answers
Related