I am trying to do some declarative programming in javascript, where I create a spec and a chart should be rendered based on the spec. I was wondering if I should store the spec which defines the chart in a json
file or a js
file?
Are there any best practices for doing this?
I was also wondering(out of curiosity) why package.json is not a js file?