json

I need to exchange data with different programs in text format what do you suggest ?

Hello, Our program needs to import/export data from/to different programs, each from specific independant proprieties. Most of these companies would send 2 text files: the first consisting of the data content along with a second one holding descriptions. Suppose this example: content file: TheArtofDeceptionKevin11.53 Description file:...

AJAX VS JSon "Cross Domain Built-in Security" Question

It looks like I can't make a call outside the current domain name with "AJAX". But I'm able to call the twitter API (with JSON) in JQuery... aren't both using the XMLHTTP Object? If so (or not), why am I able to call another domain name with JSON (using JQuery) but not with AJAX ? What's the difference between Ajax and JSON anyway? ...

what's basic difference between JsonStore and JsonReader in context to Ext.data ?

what's basic difference between JsonStore and JsonReader in context to Ext.data ? I mean when I should go for JsonStore and when I should use JsonReader as for me both are providing same solution. ...

Online JSONP converter/wrapper

I would like to fetch a source of file and wrap it within JSONP. For example, I have pets.txt. I want to retrieve source of that file from another domain using nothing but client-side JavaScript. Can I do it? Actually, I can't. I can do it only for JSONP. So, I can convert pets.txt to JSONP. I'm looking for online service which can co...

web service returns response in json,how to parse that in j2me

i am creating a mobile application using j2me. here i interact with webservices. the response returned is in json. how to parse it and get(store in a variable) value returned from it... i m new to it kindly help!!!!!!!!!!! Thanks in advance ...

Access MongoDB directly via JavaScript

Hi, is there any possibility to access and retrieve data from MongoDB directly over JavaScript form browser without backend processing? ...

Fast, lightweight XML parser

I have a specific format XML document that I will get pushed. This document will always be the same type so it's very strict. I need to parse this so that I can convert it into JSON (well, a slightly bastardized version so someone else can use it with DOJO). My question is, shall I use a very fast lightweight (no need for SAX, etc.) X...

JSON VIEW using GROUP_CONCAT question

Hey DBAs and overall smart dudes. I have a question for you. We use MySQL VIEWs to format our data as JSON when it's returned (as a BLOB), which is convenient (though not particularly nice on performance, but we already know this). But, I can't seem to get a particular query working right now (each row contains NULL when it should con...

Could CouchDB benefit significantly from the use of BERT instead of JSON?

I appreciate a lot CouchDB attempt to use universal web formats in everything it does: RESTFUL HTTP methods in every interaction, JSON objects, javascript code to customize database and documents. CouchDB seems to scale pretty well, but the individual cost to make a request usually makes 'relational' people afraid of. Many small busine...

Is there any reason why a json would on return the last object in the string when eval'd

I have a json string that when I put it into the eval function it only returns the last object in the string. Anyone possibly know why ...

How do I compress a Json result from ASP.NET MVC with IIS 7.5

I'm having difficulty making IIS 7 correctly compress a Json result from ASP.NET MVC. I've enabled static and dynamic compression in IIS. I can verify with Fiddler that normal text/html and similar records are compressed. Viewing the request, the accept-encoding gzip header is present. The response has the mimetype "application/json", bu...

ASP.Net MVC : Sending JSON to Controller

I want to be able to send JSON as opposed to the standard QueryStrings when making a post to my controllers in ASP.Net MVC. I have the Front-End stuff working fine (building and then submitting my JSON objects). The problem is on the controller side where the default ModelBinders that ship with the MVC framework do not support this. I...

DI and JSON.NET

I'm using JSON.NET to serialize and deserialize object for different purposes. I'm a big fan of DI but the code below gives me the chills. Is smells like bad code: public class Foo : Baz { private readonly IBar bar; public Foo() : this(ObjectFactory.GetInstance<IBar>()) { } public Foo(IBar bar) { if ...

Web services error trapping(Jquery + asp.net web service)

I am on the look out for an accepted solution for trapping errors in the following scenario: i have an asp.net web services that interacts with the database. I interact with the web service through jquery's $ajax function. I would like to know what is the accepted stable methodology for error trapping. When the data is received from th...

jquery's flexigrid - looking to hand data via a serlet w/ gson

Hi - New to java, but would love to implement my working jsp that generates xml used by a lovely jquery flexigrid to use a json version (generated by gson). I'm just starting out w/ java basically, but would like to learn the best way to do this. I've been looking at inner classes, but wanted to check out what would be considered bes...

Decoding JSON feed via PHP from Twitter not working?

Hello my fellow coders! So I'm pulling down a user's tweet steam in JSON format via PHP. I'd like to decode it into an associative array or at least some more usable fashion rather than a string so that I can maneuver through it. I've been reading like mad about json_decode, but for me it seems like when I use it, before and after, the...

What is the jQuery ajax equivalent to this html-form submit?

If have a html form like <form method="POST" action="http://.../file.php"&gt; <input type="text" name="data" id="data" /> <input type="submit" /> </form> I want to make a ajax-request with jQuery, but I don't want to use an invisible form to submit this. But somehow I don't get it to work. My try was $.ajax({ type: "POST"...

Convert google search results into json in python 3.1

Hi, I am writing a Python program that feeds a search term to google using the google search API and downloads the first 10 results. I was able to do this in Python 2.6 as follows: query = urllib.parse.urlencode({'q' : 'searchterm','start' : k},doseq=false) url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;%s' \ ...

jQuery and IE, not behaving at all.

Solution var options = { opacity: opacity }; //Many thanks to David Higgins for his help var direction; if(id == "chat") { direction = {right: dir + amt, top: dir + amt }; } else if(id == "rplayed") { direction = {left: dir + amt, top: dir + amt }; } else if(id == "info") { direction = {right: dir + amt, bottom: dir + amt...

Help with passing multidimensional JSON array to jQuery autocomplete via AJAX

I'm trying to implement a live search on my photos site using jQuery and the autocomplete plugin. Everything works when I specifiy the data locally: var data = [ {text:'Link A', url:'/page1'}, {text:'Link B', url: '/page2'} ]; However when I move this to PHP, jQuery is unable to parse the results properly. I'm really not sure what's...