Here is my JSON object.
{
"verbs" : [
"process",
"refine",
"define"
],
"adjectives" : [
"process",
"audio",
"language"
],
"subjects" : [
"process",
"development",
"technique"
]
}
Here is my attempt to access and process the data via th...
Hi
I would like to convert a list of User's properties into strings array (for json receiver) like:
List<User> users = <..list of users from db...>
var jsonData = (
from user in users
select new { user.Id, user.Person.Lastname, user.Person.Firstname });
return Json(jsonData)
The result is an array named fields
[{"Id":1,"Lastn...
An external web service is sending json or xml towards my app. What would be the best way to consume this data? Is there a built-in library in Rails or Ruby to do this or do I need to use a gem for this?
...
How can I make a simple search on Twitter through PHP, Java, or CURL JSON?
...
I'm having a little dilemma with an iphone project.
I'm getting some JSON data from a webservice. I can deserialize it into a dictionary OK. One of the dictionary values is a binary (a picture), but my JSON library deserializes it as an NSArray of NSDecimalNumbers!
How do I convert this NSArray of NSDecimalNumbers to an NSData object, ...
Hello. I'm trying to send a form to a PHP using $.ajax in Jquery. I send the whole thing as JSON, but, when I try to get the response, i get the 'parsererror'. What am I doing wrong? Thanks in advance.
Jquery fragment:
$("form").submit(function(){
$.ajax({type: "POST",
url: "inscrever_curso.php",
data: {cpf : $("input#cpf...
I'm working to setup a jqGrid JSON web service to populate JQUERY's jqGrid plugin.
Currently I am outputting the following with my code:
Current:
{"total":2,"records":13,"page":1, "ROWS":{"arrUsers":[{"1":1,"4":"bgf","3":"faaff","5":"ASD","2":"asd","7":"1231231233'","6":"123asd"}]}}
The desired output which is what jqGrid expe...
Can someone please point me to a reference which gives a "full circle" example implementation of either (both with android client and java appengine back end) xmlrpc or json / rest ? I have found a python example but am struggling to find a java version.
Bonus points (not really) but if anyone could provide one where the the transport m...
Hello,
I have some data that I need converted to JSON format and then POSTed with a Javascript function.
<body onload="javascript:document.myform.submit()">
<form action="https://www.test.net/Services/RegistrationService.svc/InviteNewContact" method="post" name="myform">
<input name="firstName" value="harry" />
<input name="lastName" va...
I am trying to switch from jqGrid 3.4 to 3.5. On the HTML page I'm using JSON.parse and after changing the jqGrid reference to the new version I get "JSON is undefined". This is happening in IE7. I had the impression that JSON is part of Javascript in IE.
Adding an explicit reference to a JSON implementation solves the probolem of cour...
Hello all,
I am using json to communicate with the server.
I want to post and grab an image from the server.
How to convert the image in json format to send it, also when we get an image in json format and convert it back to image.
...
I looked on the JSON.org website but I couldn't find any JSON library for Visual Basic .NET, does one exist? Did anyone have any success using Json.NET with VB.NET?
...
Does jQuery have built in JSON support or must I use a plugin like jquery.json-1.3.min.js ?
...
Below is the code so far that I am working on, It will be a comment system, the flow:
User fills in comment form
hit submit, AJAX call is made and
POST to a php script
script determines if user should
enter a captcha form
If they need a captcha form it sends
that response back along with there
sanitized message
If they do not need c...
I have the following JSON, where can be either true or false:
{"flag1":<boolean value>, "flag2":<boolean value>}
And I have tried to bind it to a Java class using Jersey and the following JAXB annotations:
@XmlRootElement
public class MyClass {
@XmlElement(name = "flag1", type = Boolean.class)
private Boolean flag1;
@Xml...
I am having trouble with my jquery script below, this is a basic stripped down version and even it will not work, I have the php file that the jquery script makes a call to, I have it set to encode and show a json response
Then in the jquery script it should read the value and respond to it but It is not getting the response.
Is j...
The code below does not return any errors and I can make it return data from process.php however on process.php I am checking for "message" like this:
<?PHP
if (isset($_REQUEST['message'])) {
//return a json string
}
?>
Here is my jquery code below, dataString shows "message=WHATEVER I TYPE IN THE TEXTAREA" when I use alert (dataS...
I am using jquery, JSON, and AJAX for a comment system. I am curious, is there a size limit on what you can send through/store with JSON? Like if a user types a large amount and I send it through JSON is there some sort of maximum limit?
Also can any kind of text be sent through JSON. for example sometime I allow users to use html, ...
I have a list of zip-codes that I need to search trough using jQuery.
I have the zip-codes in a CSV file like this:
2407;ELVERUM
2425;TRYSIL
2427;TRYSIL
2446;ENGERDAL
2448;ENGERDAL
The list is pretty big, over 4000 entries, zip-code and corresponding city.
What the fastest way to search trough the list in the browser?
JSON? If that...
I am currently deserializing JSON using XStream, and it has been working great. However, when I have JSON string like the following
{
key1: { an_object: { something: 'foobar' } },
key2: { another_object: { data: 'hi' }
}
most notably it doesn't have a root node, I'm not sure how to parse it. Basically, I want the opposite of...