Dim parametrii As Map
parametrii.Initialize
parametrii.Put("param1","155810")
parametrii.Put("data","2023-10-30")
j.PostMultipart(destinationUrl,parametrii,Null)
I believe you need to send the parameters in JSON format, do a search for Json library and look up examples how to convert a map or a list of maps into Json format.
Dim parser As JSONParser
parser.Initialize("[{"param1": "value1"},{ "data": "2023-10-30"}]" )
Dim jRoot As List = parser.NextArray
For Each coljRoot As Map In jRoot
Dim param1 As String = coljRoot.Get("param1")
Next
By checking how to parse such a string you find out that it starts with a LIST. Inside this list are Maps.
If you want to create such go the reverse way
- Create a list
- Add Maps with the content to this list
- Use jsongenerator to create a json out of the List.
- Post this json-string then