From: Eric B. <er...@pi...> - 2016-01-22 02:51:21
|
Hi Supun, There isn't a writejson() method, but there is a write() method. What isn't clear right now is that in addition to passing a filename with the appropriate extension, you can get a string back using the outputtype kwarg: data.write(outputtype='json') There's currently a bug though because the code tries to take the length of a generator, so I'll have a patch up soon. Eric On Fri, Jan 15, 2016 at 2:55 PM, Supun Nakandala <sup...@gm...> wrote: > > Hi all, > > I am experimenting with cclib 1.3.1 version and when I try to get a dump > of the data object in json format I get the following error I get the > following error. > > >>> data.writejson() > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > AttributeError: 'ccData_optdone_bool' object has no attribute 'writejson' > > > Any idea on what is going wrong here? > > > Thank you > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > cclib-users mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-users > > |