That does not appear to be a valid Python structure; I assume its generated by some third-party process - perhaps try and get it from them as a valid JSON file?
On Monday, 15 May 2017 17:06:09 UTC+2, MikeKJ wrote: > > (cardInfo){ > ShellData = > (ShellData){ > availableShellActions[] = > "CHANGE_SHELL_ITERATION_NUMBER", > None, > "IPE_FULFILMENT", > "LIST_SHELL", > None, > isrn = "" > products[] = > (Product){ > parameters = > (parameters){ > entry[] = > (entry){ > key = "autoRenewThreshold" > }, > (entry){ > key = "validityCode" > value = "0" > }, > (entry){ > key = "lastTransactionDate" > value = "2017-05-15T11:13:00+01:00" > }, > (entry){ > key = "countRemaining" > value = "10" > }, > } > } > }, > } > > I want to access the values for the keys lastTransactionDate and > countRemaining > As far as I can see there are lists within dicts and dicts within dicts > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/63c673c3-b1a0-4fcd-8a2c-5d0254cb4597%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.