#Hi Mathieu, I'm actually looking at
1 messages · Page 1 of 1 (latest)
So if I get right the best way to get the right structure and not a broken JSON, is to use this function call, the function to call is clear. But how to do the actual call ?, or simply how to convert the args as a JSON, because at the end is what my function will need to do.. For the context my JSON should be an array of object {a: number, b:String}
or simply can we get the lines missing in this example to get actually a JSON (as a string)
If you're using function calling only to extract information as JSON, this example should have what you need. https://ai.google.dev/tutorials/structured_data_extraction
Specifically:
print(json.dumps(type(fc).to_dict(fc), indent=4))
I haven't used it myself though, so if that JSON isn't actually usable please let me know.