Hello.
I'm getting an error when I'm trying to dump data to a JSON fixture in Djanog 1.2.1 on my live server. On the live server it's running MySQL Server version 5.0.77 and I imported a lot of data to my tables using the phpMyAdmin interface. The website works fine and Django admin responds as normal. But when I try and actually dump t...
Hi all
If my C# client app need to deserialize complex JSON from Java server app, what is the best option I have?
Here are two conditions need to consider:
1) speed is the most important
2) Json format could include information about the Java data type, C# client app. need to recognize it and convert it to C# corespondent type. for exm...
Sorry if the title is not clear... couldn't find better
org.json.JSONWriter has the strange limitation of 20 as a maximum nesting depth which is causing me troubles. I am stuck to the library as I have to implement a third-party interface having a method:
void write(JSONWriter writer);
the only workaround I can think of is to use a d...
For my ASP.Net application I need to use a HTTP REST API that returns a JSON object.
Here's how the JSON looks:
message: [
{
type: "message"
href: "/messages/id/23"
view_href: /this-is-a-test-message/m-p/23
id: {
type: "int"
$: 23
}
},
{ //...
}
]
I could use the DataContract...
Hi guys,
I am trying to parse a JSON string using PHP, the JSON gets sent to the PHP file using jQuery $.ajax in this format, [{"value":"59"},{"value":"7"},{"value":"46"}] , but for some odd reason I keep getting this error "Invalid argument supplied for foreach()", here is my PHP and jQuery code,
jQuery:
$(".systems").each( funct...
Something like:
var jsonString = '{ "Id": 1, "Name": "Coke" }';
//should be true
IsJsonString(jsonString);
//should be false
IsJsonString("foo");
IsJsonString("<div>foo</div>")
EDIT:
The solution should not contain try/catch. Some of us turn on "break on all errors" and they don't like the debugger breaking on those invalid Json str...
Hi,
I have the follow code:
onclick=" <?php echo 'postwith(\''.$_SERVER['PHP_SELF'].'\',{export:\'export\',date:\''.$_POST['date'].'\'})'; ?>"
while postwith is a function.
in ie i have an error:
Expected identifier, string or number
in firefox it's ok and the link is:
postwith('/page/page.php',{export:'export',date:'Yesterday'})
...
Hi all,
Summary: I need to know if there is an existing light-weight implementation of REST+JSON in .NET world which does not use WCF. If not, I am looking for some folks who would be interested to start a joint venture for an Open Source project.
I do not know about you but I was a big fan of WCF when it came out and I praised its des...
I have been trying to get a stock Drupal site up and running with JSON Server module and Services. After install I added the two modules and enabled them. When I use Curl from the command line to call system.connect or anything I only get Invalid Method.
curl --data method=system.connect http://localhost/services/json
This is what I ...
Hey :)
Has anyone tried accessing bungie.net reach stats api (statistics from Halo Matchmaking)?
As described here http://www.bungie.net/fanclub/statsapi/Group/Resources/Article.aspx?cid=545064
I can't seem to get any data returned, for example if i use this (with correct API key and gamertag values of course) ignore the first 2 asteri...
If I do a nc 192.168.2.10 8080 and then GET /test/ I get as expected a JSON response:
Content-Type: text/javascript
Cache-Control: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 74
{ ... a JSON message ...}
However, if I do a POST /test/ I get the following HTML doc as a result:
<head>
<title>Error response</title>
...
Hi,
I am using Jackson library's ObjectMapper for deserializing JSON into JAVA objects. I am using Spring 'wiring'. I have created custom deserializers to do the conversion from JSON string to POJO. However, when the input is bad (eg. a number is passed as "124A" - illegal character) a default deserialiser is invoked and bombs with the ...
I was just wondering if there are any tutorials on how to get as advanced with the google maps api. http://web-app.usc.edu/maps/#upc Specifically, I want to know how to use json for the search function.
thanks guys :D
...
This is the only official documentation available for the Halo: Reach stats API. If you have questions, read this group's forum and/or wiki to get assistance.
This is a collection of methods to access the Halo: Reach game, player, and file information. They are available as a .NET 4.0 WCF service with three endpoints. To enforce consist...
Hello all,
I have another JSON array related question.
How would I access the data stored under "when": in this array if I am importing it with JQuery with a statement like this:
function getJSON() {
$.getJSON('nearby.json',
function(data) {
console.log(data.when);
});
}
Here is a snippet from my JSON:
...
When deserializing a JSON array in C#/.NET, is the order of elements always preserved?
Edit: The library currently being used is .NET 3.5's System.Runtime.Serialization.Json.DataContractJsonSerializer
...
I'm looking to build a cross-site bookmarklet that gets a highlighted word, passes it to a CodeIgniter method (domain.com/controller/method), and returns the definition via a dictionary API. I've got a skeleton working well on a single domain, but I'm looking to expand it to use JSONP cross-domain. But I feel unclear.
I know I need to l...
I'm grabbing some JSON from YQL, parsing it into a list. Then I want to highlight rows on the list according to their contents.
I can do these two things separately by highlighting on .click but I really don't want to do that step--I want the highlights to happen right away. Here's the two bits:
var yqlURL="http://query.yahooapis.com/...
I have this json
{"suggestions":["M.I.A.","M.","Mindless Self Indulgence","The Cure","Telefon Tel Aviv","M","J. Ralph","Jason Mraz","Carbon Based Lifeforms","Cycle of Pain","Chantal Kreviazuk","-M-","ayumi hamasaki","R.E.M.","Donny McCaslin","Penfold","HEALTH","R. Kelly","DJ Khaled","Eminem","Spose","T.I.","The Lonely Island","H.I.M. (...
I'm using Jquery form plugin to send my form via ajax. The server side
php script processes the form data and returns a JSON string in the following
format:
{"error":true,"message":"The username or email already exists. Please try again."}
Here's the ajax to send the form:
$('#register_form').ajaxForm({
dataType: 'json...