If you were to apply a Do It to that global debug in your example, highlight all the data in the Do It result, hit Copy, then paste that JSON text into a text block, hopefully that would result in a text block full of legal JSON.
If you right click on that text block and choose Download Block as png (individual block, not all blocks), you would end up with a .png file.
Now here's the beauty of AI2.
That .png file, if left uneditted, can be posted here, and the posted file can be dragged into some one else's Blocks Editor workspace where it will magically appear, ready to feed some one else's app.
(Canned Reply: ABG - Download those blocks and post them here)
Please download and post each of those event block(s)/procedures here ...
P.S. These blocks can be dragged directly into your Blocks Editor workspace.
I consulted with Bing, Bard, Perplexity, Claude 2 and ChatGPT -- all confirmed that there are no examples of nested lists using MITAI2 Dictionary blocks. So now we have one. This solution uses about the same number of blocks, but uses both the 'get value at key path' and 'get value for key' blocks. The blocks extract the contents of the "text" key. Is this a more elegant solution than the one using a combination of 'get value for key' and 'select list item'? You be the judge. Personally, I find it less intuitive.
partial json object with nested lists:
{"candidates": [{"content": {"parts": [{"text": "“Do or do not. There is no try.”"}],...
While Version 2 works fine, the support staff suggested a simpler solution for handling responseContent in the Web component's GotText event block which uses one Dictionary block. This is very instructive when you have the kind of json object response often returned by LLMs that contains nested lists.
I think, the only relevant request header is the Content-Type, the others are optional
And: the Content-Length usually is the length of the text from the PostText method and not some constant value... but as there is no error, this header also seams to be optional
Taifun has pointed out that the only header blocks required are the Content-Type. I have confirmed this so further simplification was possible. The new header blocks are now:
Hi -- I no longer am working with Gemini. I suggest that you look at the documentation at aistudio.google.com -- it has examples of submitting images for analysis for several languages. There is a 'get code' option in the upper right corner where you can select a specific language. I have used the cURL language in the past as it is closest to how to set up the headers and prompts for MIT App Inventor. Good luck!