Hi all, how do i perform a HTTP request using UiPath Request Builder Wizard and deserialization of the JSON data that has been extracted from the web portal.
I have an assignment and this is the instructions,
*This assignment will require you to perform Http Request using UiPath Request Builder Wizard followed by Deserialization of the Json data you have extracted from the web portal. *
*Your main objective is to extract the player’s profile (basic data) from the website NBA Players & Team Rosters | NBA.com. * Note that you are not restricted to extracting the data via json (recommended method, with high credit). There are many options you can opt for.
I am also not sure on how to do this since its not an API.
after http request…the response can be converted to xml…but before that just to eliminate unused part I did a small strign manipulation…showing you extarcting one column…can follow same for all columns and write the data
Regex used in assign
System.Text.RegularExpressions.Regex.Match(str,"\<table.*\</table\>",RegexOptions.Singleline).Value - this extracts only table part
Now for loop use list item as xmldoc.Element("table").Element("tbody").Elements("tr") …here xmldoc is output of deserialize
inside loop used followign to get name…similarly find other column nodes and create a table