this is the JSON string the data is required in to be sent using a given URL.[code]I am using VB.net and i need to create this string using VB.net. I tried using namevaluecollection and doing a POST. I also tried making a string and send data using GET. Both failed. how can i do this?
how to receive and send back json. Hope someone can help me on this. I understand by examples.
On my clientside, I am sending a ajax json string "name":"theName" to the server side and would like the server side to return a string saying "welcome &name ".
I have an existing WSDL which returns information to remote devices using SOAP. However, I'm writing a new app with Android which doesn't support SOAP so I can't use the existing WSDL and have had to code a new app which looks for a querystring from the Android app and returns the data in a JSON packet. I've coded the module which receives the data okay but I'm unsure how to send the data back in JSON forma
I have a JSON response from a web service that I need to be converted to an object then to an array. My response is similar to the one below:
{"status":{"error":"NO","code":"200","description":"none","message":"Request ok"},"geolocation":{"lat":"38.89515","lng":"-77.0310"},"stations":[{"country":"United States","regPrice":"0.00","midPrice":"0.00","prePrice":"0.00","streetAddress":"1401, I St[code]....
I am doing this is VB.NET within a console for now. Basically I am trying to create a simple way to test my API calls and output the information. What I am trying to accomplish is having to loop through the JSON array and list the stations.
I am looking for a vb.net library where I can insert data into an object and have it spit out a json formatted string, and also take the string in again to rebuild the object.I am not that concerned with mapping it to preexisting objects.I have searched around and every single library I've found either can't read the strings in again, interprets them as one long string instead of breaking them up into parts, or fails to work entirely (asp.net can't even find any public members).
I'm a newbie about web services in VB.NET. I'm making a desktop application that will talk to JIRA[URL]..They provided a REST api that I decided to use. The first step is to login which they say that...
"To log in to JIRA, you need to POST a username and password in JSON format..." {"username" : "admin", "password" : "admin"} to this url... https://addressgoeshere (we are using https)
Can someone provide me a sample code to do this so I can have a guide and a good start?
I am working on a project in which a server page is called through XMLHttp and now i want to retrieve response the called page in json object.and i never used json
I'm writing a little web service which generates SO/SF/SU/MSO user flair in the form of an image with various "themes". I find this preferable to using the HTML/JS solutions offered by SO as it's more flexible and also works better in forum signatures.
I'm retrieving the data using the apparently unofficial API (More info here). I can have the data in HTML or JSON. I assumed the JSON would be easier to parse.
Unfortunately, I'm not great at regexes. and the best I can come up with is some very hacky sub-stringing. I believe a regex should be the most elegant solution
regex that matches ID, GravatarURL, ProfileURL, DisplayName, Reputation and Badge Counts (Bronze/Silver/Gold).
FWIW This is to be used in a VB.Net project (in case that affects the syntax at all)
[Code].....
In case any of you are interested, some screenshots of the flair as a work in progress are available here: Me, Jeff Atwood, Joel Spolsky
how to parse and extract specific elements out of a JSON that I obtain from a web source. Using Visual Studio 2010 and VB. I can get the JSON but I haven't been able to find any examples or tutorials regarding parsing the data, locating specific elements and their associated data.
I am using the Facebook Toolkit and making a request using FQL.Multiquery. I am using the following code which returns the correct data:
Dim query1 As String = String.Format("SELECT post_id, actor_id, target_id, message FROM stream WHERE source_id in (SELECT target_id FROM connection WHERE source_id={0}) AND is_hidden = 0", FBuserId) Dim query2 As String = "SELECT pic FROM user WHERE uid IN (SELECT actor_id FROM #firstQuery)" Dim queries = New Dictionary(Of String, String) queries.Add("firstQuery", query1) queries.Add("secondQuery", query2) Dim result As List(Of Facebook.Schema.fql_result) = q.Multiquery(queries)
When I run this 'result' list is populated with the results of the two queries in XML but I am unsure how I can send this list to the browser in JSON. I am using asp.net MVC.
I found similar forum thread [URL], but he don't have answers. How I can conncect | send | recive data using tcp connection with specific internet service (not web).
I do encounter interest problem when I am using VBNet2008 and SQL Server 2000. I am developing Window Application and one of the form I am using SQL String with Date between to retrieve specific data from SQL SERVER 2000 Table and it's not working and generated this error message: Invalid column name strFromDate Invalid column name strToDate
Here are the overall coding: Dim sqlconn As SqlConnection Dim sqlcmd As SqlCommand Dim DA As SqlDataAdapter Dim DR As SqlDataReader [Code] .....
i knew Serial ports are a type of computer interface that complies with the RS-232 standard. They are 9-pin connectors that relay information, incoming or outgoing, one byte at a time. Each byte is broken up into a series of eight bits, hence the term serial port.And I want to write a program chatting through Serial Port.
If we have a string that contains for example "01_1A" in ascii, I would like to take first two chars and following two chars after mark and send it as hex format, like &H1 and &H1A.
Note that I would not convert ascii to hex. I am asking for something like &H(var).
im trying to create a simple program that send string data through winsock, there are hundresd of tutorials allover the web, but non of them seem to work! I am fairly new to visual basics but i undersatnd the consept of winsock and 'all that stuff'. [code]
I am trying to deserialize a JSON string using VB.net and cannot seem to pull the values out of the finished List.[code]I am told "Index was out of range. Must be non-negative and less than the size of the collection."
I've the following JSON string to deserialize: [{"application_id":"1","application_package":"abc"},{"application_id":"2","application_package":"xyz"}]
I'm using DataContractJsonSerializer method. It is made up of array of items and I couldn't find an example using VB.Net that can deserialize this structure. I have the following Application class to store this information: <DataContract(Namespace:="")> _ Public Class ApplicationItem <DataMember(Name:="application_id")> [Code] .....
I am been stuck on this for 3 days now...I have been accessing the twitter api to pull a user_timeline for a list of users and the json that comes back is impossible to work with. I tried to deserialize it using javascriptserializer and get an error:invalid object passed in , ':' or '}'
Now this is frustrating since I expect the json being returned to be error free. Then I tried json.net and split the posts using string.split and tried to convert each post to Jobject or jarray. for Jarray I get
'unexpected end of content while loading jArray
[Code]...
Now I have formatted the code here and not pasted the whole file but it does look like valid json to me and I do not alter anything after receiving the stream from the twitter api. Can someone please point me in the right direction? I really need to get this stuff parsed?
I'm trying to create this JSON string but having problem creating it.I'm getting System.NullReferenceException error.Here is the json string that I would like to create{"id":["1","2","3","4"]},"sid":["s1","s2","s3","s4"]}Here is the code I have so far.
Imports System.Web.Services Imports System.Data Partial Class test_sidetab
I was using a JSON MAKER class to make a JSON string to send off from my webservice - it was way too slow - so I thought I would do the string manipulation right in the recordset loop - how could I go wrong - it is only 1141 records![code]...
{"AliasName": "ysiCountryInfo", "DataClass": {"Description":"United States 111","Code":"usa","WriteOffTaxPointAdjustment":0,"IndexationRounding":6}} I would like to deserialize object into below class