How put the correct string in VBA Access to Post to Json



  • This post is deleted!

  • administrators

    @nector You should understand the code instead of copy-pasting. Above code neither generates JSON nor posting any data. I've already mentioned that posting data is done by sending it with send method using http.send data

    You can do something like this

    Dim postData As New Dictionary
    postData("id") = 1
    postData("name") = "codingislove"
    http.send ConvertToJson(postData, Whitespace:=2)
    

    Above code will post {"id: 1, "name": "codingislove"} data to the API
    Copy pasting the code won't work. Do understand the code and implement it as required.


Log in to reply
 

Looks like your connection to Codingislove Forum was lost, please wait while we try to reconnect.