I feel that there is a fairly simple solution to my problem.
I am doing some manipulation of data that eventually prints in highcharts format. I am currently pulling out the entire set of nested dictionaries and printing every part, but I was hoping there was something like JSON.dumps (dict) where the output was formatted with all keys without quotes. So in code-ish-stuff:
{ 'chart': {'backgroundColor': 'Blue', 'borderColor': 'Black', 'renderTo': 'container'}, 'xAxis': { ... }, ... }
Conclusion on
{ chart: { backgroundColor: 'Blue', borderColor: 'Black', renderTo: 'container'}, xAxis: { ... }, ... }
If I cannot conclude, is this a good way to interact with HighCharts from python? In fact, I did not come across this, despite some reasonable features of Google-Fu.
EDIT: I am working to make it compatible with Geckoboard - the Highcharts plugin where I do not get access to the full javascript feature for parsing output. I need it to be already formatted and ready to be uploaded when I send data.
source share