Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
2answers
34 views

QJson: Yet another Json parser and serializer for Qt, but with additional features

I wrote QJson, a utility class in/for Qt, I need you to take a look at. It is both a JSON parser and serializer, but with extended funcionality (going beyond the JSON specification) (see first ...
2
votes
0answers
20 views

QJsonView: A QWidget-based json explorer for Qt

Abstract I'm developing applications using Qt which highly make usage of the JSON language to communicate, store and load data of different types. I often need a simple viewer similar to the Firebug ...
2
votes
1answer
23 views

Loading a pseudo-class instance from JSON

Is there a better way to do this? function Person(name) { this._type='Person'; this.name=name; this.hello = function(){ alert('Hello '+this.name); }; } function ...
2
votes
0answers
159 views

JSON Serializer

Carrying on from: Yet another C++ Json Parser Yet another C++ Json Parser (Recursive) All the code is available from git hub: ThorsSerializer but only reviewing a small section here. The idea is ...
5
votes
2answers
106 views

Check if a value exists or catch an exception

I am parsing a response from server, and in case it contains the fields "chunk_number"(J_ID_CHUNK_NUMBER) and "total_chunk_number"(J_ID_CHUNK_TOTAL), I want to check whether I should request another ...
1
vote
1answer
596 views

Android: Optimize JSON insertion to SQLite (insert … on duplicate key ignore)

In current task, I'm refactoring the code of converting JSON file into SQLite database on Android device. Code compliant with Java 6. As od benchmark, grabbing the code from remote server takes ~1 ...
4
votes
3answers
132 views

python: is my program optimal

I wrote code in python that works slow. Because I am new to python, I am not sure that I am doing everything right. My question is what I can do optimally? About the problem: I have 25 *.json files, ...
1
vote
1answer
69 views

JSON formatting and processing hierarchies

I have a properties file I'm using for GIS software and currently you have a feature like road, then properties under it like so: { "road": { "colour": "rgb(0,0,0)" }, ...
4
votes
3answers
153 views

StackOverflow user info fetcher

I'm starting to look at Python and it's facilities. I just try to make one simple program using some base libraries. I would like to hear some comments about anything you've noticed - style, ...
3
votes
1answer
369 views

Yet another C++ Json Parser (Recursive)

Following on from this request Yet another C++ Json Parser A friend pointed out that he though a recursive decent parser would be more efficient. Before I agree I want to test it so I wrote it for ...
5
votes
0answers
321 views

Yet another C++ Json Parser

This is a framework for a json Parser I put together last night. Any comments appreciated. JsonLexer.l: Breaks the input into lexemes JsonParser.y: Understands the language syntax JsonParser.h: ...
3
votes
1answer
86 views

A better way to convert an SQLObject instance into a dict

I've got this function which returns an SQLObject instance as a dict (taking into account inherited classes, properties, etc). It doesn't work right now on SQLObject classes which inherit from ...
3
votes
1answer
303 views

Convert XSD to JSONSchema, tips for refactoring

UPDATED - This is v 0.4 .. i have fixed a few more bugs ..and covered more cases. public static class ReadXsd { #region ExtensionMethods private static void AddTypeAndExtends ( this ...
1
vote
2answers
123 views

JSON for one column of a csv file?

I wrote this to pull one column of data from a csv file, divide each of the results in 2, and then format it as JSON so I can do stuff with it in a web app. It works, but it feels wonky and weird. ...
3
votes
2answers
232 views

Passing HTML back inside a JSON object

First question on here. I'm working on a piece of code in my MVC3 application and I'm struggling to decide if what I plan to do is a bad idea or not. I have a snippet of javascript that calls an mvc ...

1 2 3
15 30 50 per page