Do you know any SQLite-like database that stores its data in easily readable plain text format (like multi-line json or yaml)?
I'd like to store some data along with my project in version control system but if I use sqlite I can't merge data changes that occurred in different working copies.
I don't want to use just some kind of config...
i have got following JSON string please tell me how to read it in asp.net..
i have got newtonsoft library also.. please give me solution. i want to read email id and name from below JSON
var InitialContacts =
[
{"guid":"","contactId":"32","contactName":"a, a a","email":"[email protected]","isConnection":false,"connection":"","displa...
Hi,
I need help with writing regular expression for this pattern in PHP:
[[{"type":"media","view_mode":"small","fid":"1","attributes":{"width":0,"height":0,"src":"http://localhost/x.png"}}]]
This is part of the text and I am trying to replace this by something else.
Would like to use preg_replace_all() but can't figure out what wou...
Hi stackers,
I'm trying to take a jSON encoded string out of my database and loop through the items but I'm having some difficulty. Here's the string in the database:
["volunteers","seat_dedication_program","memberships"]
And here is the code:
//Looks for _checkbox when looping through my database fields (object dbVals) and turns i...
UPDATE:
I found that the reason for the previous error was an error in the documentation.
The method should be named proxyForJson, not jsonProxyObject...
But I'm still stuck, though.
I now get an EXC_BAD_ACCESS error inside stringWithObject some where. Any clues?
UPDATE 2:
My proxyForJson implementation is a cut-n-paste from th...
I am able to send data to the server using JSON and get back the appropriate data, but before I handle the returned data appropriately I am just trying to output the returned JSON data as an alert. I cannot understand why this is not working.
I do get an alert but the text value says "undefined" - I am not sure what I need to do to eith...
Hello,
I have a web service from which I need to return a string containing html. This html is the markup for a Select control (for use in jqGrid search filters), e.g.
<select><option id='1'> value 1 </option></select>
My WCF web service contains a method that returns this value as a string...
public string GetLeadTypeSelec...
I need to send a big block of HTML in a Json object like this:
JsonResult jsn = Json(new Dictionary<string, object> { { "success", true },
{ "lastPID", posts[0].ID },
{ "content", "" } });
return jsn;
For some reason I get this error when I put that html block into the content var...
Really spent a lot of time searching for this. Please need some help.
I am trying to add multilingual feature to my web app framework. For this I am unable to send non ascii characters as JSON. Here is what I am doing
Here is what I get from the database
'\xe0\xa4\xa4\xe0\xa5\x87\xe0\xa4\xb8\xe0\xa5\x8d\xe0\xa4\xa4'
which when I pri...
I'm on a project that processes and reports on large sets of aggregatable row based data. There is a primary aggregation service and then many clients who can subscribe to different views of the data from that server. The objects are passed back and forth between the Java server and the C# clients encoded in JSON. We're noticing that the...
I have constructed several web services that successfully serialize my .NET types into JSON. However, I'm running into an issue getting the JSON to be fully compatible with the YUI library and the DataTable in particular.
The YUI DataTable can be fully configured using JSON objects. I created the following struct in .NET to represent a...
Got kind of a tricky problem.
I'm working on a project where we need to allow receipt printouts when users check out on our site at a kiosk. For reasons relating to drivers and formatting, I am using COM automation with Word to handle printing out the receipts. I've wrapped this code up in a web service that runs on a local machine.
Th...
I need to call the server AJAX-way, just to get 1 parameter:
Must I do this through JSON?
Or, can I just shoot this through like a regular HTML page, like this:
4
or
6
Then, will JavaScript be able to read that line?
If so, how can I do this using jQuery?
...
It's something like this, but this example seems a little complicated.
import simplejson as json
json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])
My dictionary is:
myfruits = {'fruit':4, 'color':11}
How can I turn this into a JSON, and then use render_to_response to shoot it to a template?
I'm using ...
I know how to use the JQuery ajax feature to call the "url view" of Django.
import simplejson as json
def the_view(request):
fruits = {'color':5, 'type': 22}
jfruit = json.dump(fruits)
return render_to_response( THE JSON OBJECT!!! ...how? )
...
How to assign a variable to returned JSON data that has been manipulated with .replace() as shown below. Purpose: build the URL for the video thumbnail image from video ID returned by JSON.
Question: How to assign a video ID (ex. mVWhWsgHzKM) to a variable so thumbnail URL can be constructed.
$.getJSON(
'http://gdata.youtube.com/fe...
How do I send a JSON request in ruby? I have a JSON object but I dont think I can just do .send. Do I have to have javascript send the form?
Or can I use the net/http class in ruby?
With header - content type = json and body the json object?
Thanks
...
I have a JSON object like:
var myObject = { '0' : 'blue' };
Now, in JavaScript, when I try to access the value of the key '0' like:
myObject.0
...I am getting an error. (Maybe this is not the proper way?)
How can I access the value of a key that is a number (like the above)?
...
I have a GeoDjango model object that I want't to serialize to json. I do this in my view:
lat = float(request.GET.get('lat'))
lng = float(request.GET.get('lng'))
a = Authority.objects.get(area__contains=Point(lng, lat))
if a:
return HttpResponse(simplejson.dumps({'name': a.name,
'area': a.a...
I am trying to customize this script so that instead of a user's recent tracks it will display a user's favourite artists.
This is what I have come up with, however it doesn't work whatsoever. I thought it would be easy changing the attributes of the feed, but obviously not...
(function($){
$.fn.lastFM = function(options) {
var defaul...