Ola
I'm trying to copy and use code from javascript (which is somehow 'different'). Instead of having to modify such strings before I can use them, I'm wondering if its possible to get them parsed to list and or map variables.
I'm trying to copy and use code from javascript (which is somehow 'different'). Instead of having to modify such strings before I can use them, I'm wondering if its possible to get them parsed to list and or map variables.
B4X:
Dim sCode As String = $"[{action: 'move_to_inbox', title: 'Inbox'},{action: 'send', title: 'Sent'},{action: 'delete', title: 'Trash'},{action: 'report', title: 'Spam'},{divider: True }, {header: 'Labels'},{action: 'label', title: 'Family'},{action: 'label', title: 'Friends'},{action: 'label', title: 'Work'}]"$
1. The keys are not inside quotes i.e action
2. There is a single quote on the titles
In normal circumstances most things should be in double quotes.
Thanks.