Forgive me if this has been asked before; I couldn't find anything close after a few searches:
I'm trying to write an ActionFilter in MVC that will "intercept" an IQueryable and nullify all the parent-child relationships at runtime. I'm doing this because Linq does not serialize objects properly if they have parent-child relationships (...
I have a bit of a dilemma. I have a JSON object that has a format I'm unfamiliar with (starts with an array [] instead of an object{}) and was wondering how I might parse it in AS3. The object looks like:
[
{
"food": [
{
"name": "pasta",
"price": 14.50,
"quantity":...
hi,
i'm trying to use json_decode to combine a few json objects and then re-encode it. my json looks like:
{
"core": {
"segment": [
{
"id": 7,
"name": "test1"
},
{
"id": 4,
"name": "test2"
}
]
}
}
...
I need a user to be able to perform these actions:
Click an "Add" button. This will add a JavaScript object to either an array, or another JavaScript object.
Click a dynamic "Remove" button. This will remove the JavaScript object from the array, or object, whose ID matches the button click.
Submit the complete array, or object, of des...
Given a JavaScript object:
var dataObject = {
object1: {id: 1, name: "Fred"},
object2: {id: 2, name: "Wilma"},
object3: {id: 3, name: "Pebbles"}
};
How do I efficiently extract the inner objects into an array? I do not need to maintain a handle on the object[n] IDs.
var dataArray = [
{id: 1, name: "Fred"},
{id: ...
Hello,
For a scenario using 0 ASP.NET controls at all but rather an 100% extJS interface, what would be the advantages of using ASP.NET MVC or ASP.NET WebForms? And the disadvantages? Is there a OBVIOUS way to do it properly?
I would love to have feedback's on your experiences.
Thank you!
...
I've used this method in .NET to pass data back and forth between client and server using JSON objects (both ways). I really liked the method and am looking to do something similar with web2py. Web2py supports returning json objects and supports jsonrpc. I haven't however been able to make it parse a JSON object. My client call loo...
i'm trying to parse json in as3 that has multiple arrays like this:
{
"a1": [
{
"a": 1,
"b": "2",
"c": 3
},
{
"a": 1,
"b": "2",
"c": 3
}
],
"a2": [
{
"a": 1,
"b": "2",
"...
Is there an easy/elegant parser for dealing with JSON in C#? How about actually serializing/deserializing into C# objects?
...
I used to be pretty comfortable with using jquery for json, but I'm having an odd issue tonight that I just can't wrap my head around. JQuery sends the request, the server fills it properly, but then there's no way to pull the data out of the json response.
The server's ASP.MVC and serializing using the JsonResult/Json().
I'm complete...
{"person": "david",
"images":
{"usable_sizes":
[[[150,
41],
"image1.png"],
[[220,
61],
"image2.png"],
[[220,
61],
"image3.png"]],
"uploader": null}}
I am using a JavaScriptSerializer in C# to parse some JSON. The above is the string I get back from the webrequest. Calling Des...
HI!
I have a little problem.
When I'm using DataContractJsonSerializer with complex types(own types) it works fine. But I have to deserialize TimeStamp or DateTime from string. So I cant mark this types with DataContract, DataMember attributes.
I wrote some code
string jsonedTS="PT2M15S";
DataContractJsonSerializer jsonSerializer = ...
Hello everyone,
I have installed Graphviz and pear image_graphviz in windows WAMPserver. I can draw graph with dot in php now.
But I want to use Graphviz with php array or json.
What can i do for that? Do you have any ideas?
Thanks.
...
I'm using Flot to graph the clicks per minute for the first 60 minutes on short URLs made: http://cuthut.com/RA5?.
As you can see it starts at minute 0 and goes to minute 59. My question is: how do I get the data to start at 1 and end at 59. In my JSON file the time numbers go from 1-50.
I set the flot options to have ticks from 0 - 60...
I'm really new to Python, but I've picked a problem that actually pertains to work and I think as I figure out how to do it I'll learn along the way.
I have a directory full of JSON-formatted files. I've gotten as far as importing everything in the directory into a list, and iterating through the list to do a simple print that verifies ...
Hi,
When we prefer to use YAML over JSON and vice versa considering following things :
Performance(the encode/decode time)
memory consumption.
expression clarity
library availability , easy of use (prefer C)
I was planning to use one of these two in our embedded system to store configure files. Thanks.
Related:
Should I use YAML ...
Is there a standardized way to store classes in JSON, and then converting them back into classes again from a string? For example, I might have an array of objects of type Questions. I'd like to serialize this to JSON and send it to (for example) a JavaScript page, which would convert the JSON string back into objects. But it should then...
I am using the following code:
myObj jsonStream = ser.Deserialize<myObj>(jsonStream);
And all was working fine until the JSON that came back had a null value for one of the fields. i.e.:
"name" : null
During the deserialization process, it's throwing an exception. In my myObj, I have a member:
public string name;
How can I gra...
Hi All,
var jsonCallbackCode1 = eval("employees = { 'accounting' : [ { 'firstName' : 'Jo''hn', 'lastName' : 'Doe','age': 23 }]}");
alert(employees.accounting[0].firstName);
I got the following exception
Microsoft JScript compilation error: Expected '}'
help me?
...
Hi, I am getting a some unusual problem with JQuery ajax. I am using IIS to host my web application and I have http handler for which I have enabled only POST verb on it. Using JQuery ajax, I am posting data to this http handler, this is working fine in our development and testing environment and also most of the time on production envir...