QJson – Home

Leave a comment

QJson – Home.

QJson

the easiest way to manage JSON objects with Qt


JSON (JavaScript Object Notation) is a lightweight data-interchange format. It can represents integer, real number, string, an ordered sequence of value, and a collection of name/value pairs.

QJson is a qt-based library that maps JSON data to QVariant objects: JSON arrays will be mapped to QVariantList instances, while JSON objects will be mapped to QVariantMap.

Easy to use

QJson is fast and reliable. Don’t waste your time writing another JSON parser!

Converting a JSON object to a QVariant requires just three lines of code:

1 // create a JSonDriver instance
2 QJson::Parser parser;
3 bool ok;
4 
5 // json is a QString containing the data to convert
6 QVariant result = parser.parse (json, &ok);

It’s also possible to convert QVariant instances to JSON objects:

1 // create a Serializer instance
2 QJson::Serializer serializer;
3 const QByteArray serialized = serializer.serialize( json_object );

It’s possible to serialize QObject instances into JSON and also to initialize a QObject using the values stored inside of a JSON object.

Check out the usage section for more code snippets.

Advertisements

Wish Steve a Happy 56th

Leave a comment

http://happybirthdaystevejobs.com/

10 years — WOW! Look at what Apple’s been up to.

Leave a comment

From an illustrated by Brett Jordan (check site – nice Etch-a-Sketch!!) in the graphic shown – things have also changed at Apple.

Why almost 10 years ago we were ready to be controlled by the imbecilic moron as he lead us toward the great depression, and all the lies and half-truths that lead to so many lives lost.

(sorry – don’t want to get up on that soap box.  these are happy times now — I see a beautiful green field, knee high grass blowing in the breeze….)

What a difference – BTW the 2nd generation, well maybe third – original Mac -> Mac SE -> iMac 3G, held the title, IMHO, as one ugly creature until they came up with the iMac G4 – Oh! can you say UGLY!  Wow, whom ever design that monstrosity must have just left design school.

Enjoy!

apple-2000-vs.-2010-imac-iphone-evolution.jpg

 

Oh and for your enjoyment — Maybe the WORLDS FIRST PORTABLE , w/o keyboard & mouse —

macpack.jpg

Hey something new!

Leave a comment

Hey it’s about time I posted something new here.  Well here it is.

Been a bummer of a summer.  Mostly job hunting and little time for any fun.  So things are getting tight (as if it wasn’t bad enough, already) and we’ll have to buckle down as we move into the winter.

 

I am testing out some new blogging software – it’s called MarsEdit – from RedSweater – http://www.red-sweater.com/marsedit/

 

Give it a run — oh sorry to say Mac only — we don’t do WINDOWS……


Have a good one.  ’till we next meet – and I update you on the test run – ENJOY~