JSON Object to CSV Question
Saran Ahluwalia
ahlusar.ahluwalia at gmail.com
Sat Jun 20 13:27:55 EDT 2015
Here is the dictionary that corresponds with the CSV printed to the console:
1. {
2. "PAC": {
3. "Account": [{
4. "PC": "0",
5. "CMC": "0",
6. "WC": "0",
7. "DLA": "0",
8. "CN": null,
9. "FC": {
10. "Int32": ["0",
11. "0",
12. "0",
13. "0",
14. "0"]
15. },
16. "F": {
17. "Description": null,
18. "Code": "0"
19. }
20. }]
21. }
22. }
On Sat, Jun 20, 2015 at 11:04 AM, Ned Batchelder <ned at nedbatchelder.com>
wrote:
> On Saturday, June 20, 2015 at 2:10:51 AM UTC-4, Sahlusar wrote:
> > @Joonas:
> >
> >
> > The previous example was a typo. Please use the below example as a case
> study.
> >
> >
> >
> >
> > {'D_B': ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'],
> 'F_Int32': ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0',
> '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0',
> '0', '0', '0'], 'OTF': '0', 'PBDS_Double': ['0', '0', '0', '0', '0', '0',
> '0', '0'], 'SCS_String': ['1', '2']}
> >
> >
> > All of the questions regarding XML I have asked. I have to work within
> their parameters. The CSV, for example may look like this:
> >
> >
> > DLA,FC,PC,WC,CN,Description,Code,CMC
> > 0,00000,0,0,,,0,0
>
> There isn't a single word in common between the Python dictionary you've
> shown and the CSV sample output you've shown. There's no way anyone can
> tell what mapping you intend here.
>
> --Ned.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150620/790203f8/attachment.html>
More information about the Python-list
mailing list