Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dart how to convert json to x-www-form-urlencoded

  Map<String, String> body = {
    'name': 'doodle',
    'color': 'blue',
    'homeTeam': json.encode(
      {'team': 'Team A'},
    ),
    'awayTeam': json.encode(
      {'team': 'Team B'},
    ),
  };

  Response r = await post(
    url,
    body: body,
  );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dart #convert #json
ADD COMMENT
Topic
Name
5+4 =