I have a setup with multiple form fields..
<input type='text' id='Trait1' >0</input>
<input type='text' id='Trait2' >1</input>
<input type='text' id='Trait3' >2</input>
<input type='text' id='Trait4' >3</input>
(data used is just for example)
When I use
$.JSON.Stringify(form.serializeArray());
I get something like..
[{'name','Tr...
Hello,
I'm getting this error msg from the JSON result sent by the Twitter search API.
Any ideas on what it means & how to avoid it? Its kind of a random error, since it does not always appear.
-JSONValue failed. Error trace is: (
"Error Domain=org.brautaset.JSON.ErrorDomain Code=10 \"Garbage after JSON\" UserInfo=0x5c49900 {NSLoc...
Hi all. I'm having troubles when I want show a JSON response. I extract correctly the strings but when there is characters like 'á' or '¿' instead of these ones appears 'Ãi' or '¿'. I think that the response comes in non-UTF8 enconding, but I cannot find how to convert it.
EDIT: I'm trying to do a GET request to this URL: https://gra...
Hi,
I'm writing an app currently that uses the ExtJS framework. I'm pulling an XML feed from an external site using cURL, loading as simplexml, json_encode-ing it, and writing it to a file a .JSON file which I will later access with ExtJS data store.
However, the formatting is becoming funky because the XML generated from the PHP fi...
I'm using Newtonsoft.Json.Linq and I'd like to load the data into objects (or structs) that I define and put the objects into a list or collection.
Currently I'm pulling out the JSON properties with indexes to the names.
filename = openFileDialog1.FileName;
StreamReader re = File.OpenText(filename);
JsonTextReader reader = new JsonTex...
I have plans to set up a website where people can create an account and create their own content. This content consists of text, images and likely audio.
Users should also be able to download an iPhone, iPad, Mac or even a Windows app that syncs with their online content, so they can view their content offline, possibly make changes to ...
I am new to JSON and JavaScript object.
-Can anyone please explain the differences between JSON and JavaScript object?
-What are their uses?
-Is one better than the other? or it depends on the situation?
-When to use which one, in what situation?
-Why JSON was created in the first place? What was the main purpose?
-Can someone give exa...
Hi guys, I am trying to access a jQuery JSON object, and I can't see anything wrong witj my code, but all I get when I try to access the object is undefined, I was thinking that maybe it's because of the way it is nested, but I am unsure, here is my code,
function systems(dom_id, id){
$.getJSON("get_systems.php", {uid:id}, function(d...
I'm storing a file through GridFS and saving the id like so:
$file_id = $gridfs->storeUpload('texture');
$item = array(
'name'=>$_POST['name'],
'description'=>$_POST['description'],
'price'=>$_POST['price'],
'categories'=>$category_array,
'tags'=>$tag_array,
'file'=>$file_id
);
$collection->insert($item);
and...
Hi,
In python I have a complex object hierarchy made of lists and dictionaries. I want to spit it all out to CSV or some other kind of database format. Any answers in Python or Javascript very much appreciated.
I understand that one CSV file (or table) can only represent one 'level' of object in my hierarchy, so the solution would need...
Hi,
The following is part of a JSON string returned from the server:
{
col1: {
caption: 'Workspace',
combodata: {
c_0: {
id: 0,
value: 'Filter...'
},
c_1: {
...
Hello guys.
I have a grid(gridpanel) and data in it which I read from json query. After I added new bussines object(row) - I send him in json format to server, write to DB, and reload all grid. How I can focus on currently added row(b/o) after that? I will be very cool if I return added id at the json answer and grid take it and focus o...
I am trying to parse a json value to a decimal with no success. I am using the following framework
http://code.google.com/p/json-framework/
and my code is as follows
NSDecimal RRP = [[jProduct objectForKey:@"Price"] decimalValue];
NSLog(@"%@", RRP);
I get
Program received signal: “EXC_BAD_ACCESS”.
Just to test I thought I would t...
Let's say that I got the following json object:
var jsonResult = {
"result": [
{ "UserName": "joga", "FirstName": "Jonas", "LastName": "G" }
{ "UserName": "sss", "FirstName": "Abra", "LastName": "p" }
]
};
I got an array with:
var cols = ["UserName", "LastName"];
how do I go through the json object and bui...
Hello,
If I make a jquery AJAX request which is succesful I get back my JSON data. However, If I make a request and I get somthing other than a 200 response code back, I cannot get back the data in the Jquery call back. I need the data as it has a description about the data.
success: function (data, tst, xhr) {
$.log('XHR OK');
},
...
Hi,
How can i pass the json output from controller action to its view ?
As I tried to send before, My code is :
public ActionResult Index()
{
Guid Id = new Guid("66083eec-7965-4f3b-adcf-218febbbceb3");
List officersTasks = tasks_to_officer_management.GetTasksToOfficers(Id);
return Json(officersT...
It might be a frequent question but i cannot figure out how to prevent errors in my parsing when the script can't find a property...
in XML was easy because even the empty properties were like <location/>
but now if location is not available JSON paser cant find it and it results in errors...OR
it may happen the json has different pro...
Probably, a simple question, which I can't seem to find a solid answer to.
Why would one choose JSON2 over jquery-json plugin (
http://code.google.com/p/jquery-json/)? Given that a web application is using jQuery to begin with.
Everyone's writing about how great it is that JSON2 falls back on the native implementation... Well, so doe...
I've been using Google Chrome to debug my javascript, but then all of a sudden I can no longer place breakpoints. I click on the line number, where I previously clicked to add a breakpoint, but no breakpoint will be added. Sometimes if I click very fast, like a madman, I can see it trying to add breakpoints, but it won't stick.
The only...
I'm interested in benchmarks for various JSON parsing libraries, ideally, comparing Java and C/C++ implementations.
Java only benchmarks by the Jackson folks:
http://www.cowtowncoder.com/blog/archives/2009/02/entry_204.html
Thanks!
...