Back

can we send list of string or multiple string in the data section of req.payload. if yes...

  • 0
  • Flutter
  • Functions
Ansh
5 Jun, 2023, 11:09

if yes then how am i suppose to access the diffrent strings inside data specifically in the dart sdk

TL;DR
Yes, you can send a list of strings or multiple strings in the data section of req.payload. However, you need to send them as a string and use the `jsonDecode` function in Dart to access the different strings inside the data. Here is the link to the `jsonDecode` function in the Flutter SDK: https://api.flutter.dev/flutter/dart-convert/jsonDecode.html
Binyamin
5 Jun, 2023, 12:12

You can. But you'll need to send them as string. Then inside your dart code use the jsonDecode function

https://api.flutter.dev/flutter/dart-convert/jsonDecode.html

Binyamin
5 Jun, 2023, 12:13

In general - as of now - the function payload will always be a string.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more