Im currently trying to filter some information from a file we have coming to our application from a web server
the format the information is currently in is :
{"ns2":"ns2.xxxx.xxx","ns1":"ns1.xxxx.xxx","classname":"com.logicboxes.foundation.sfnb.order.domorder.DomCno","privacyprotectedallowed":"true","isOrderSuspendedUponExpiry":"false","noOfNameServers":"2","isprivacyprotected":"true","classkey":"domcno","isImmediateReseller":"false"}
What we would like to do is extract the information piece by piece but we are trying to start with the NS2 and NS1 fields
Before we had the following to format our data but i couldnt seem to change it around to make it filter out the above string
Dim m As New Regex("(?<=<div id=""xxxx"">).+(?=</div>)")
I was wondering if someone here could give me a path to go down
Thanks
In your case, you can do something like this:
Your JSON result as a .net object
You can use this library to convert it: http://james.newtonking.com/projects/json-net.aspx
Here’s the example:
Hope this helps you out!
I would also recommend to take a look at the ContractResolvers, so you can use PascalCasing for your properties. More info can be found here
If you don’t want to create the Blob object, you can also try this: