Just to let you know: I am working with wxCrafter as it is now several weeks and saying nothing means I didn't find any more major annoyances other those already said. I am looking forward to see AUI support - thats something I was missing personally.
BTW, I also have a personal question: In one of my projects I need to persist a configuration that changes a lot during runtime. Of course I thought about XML, but seeing all the JSON work in wxCrafter I wonder why you preferred JSON over XML. Is there a particular reason for it (more flexibility, easier API...) or is it a matter of taste? I am asking because I don't have strong experience with both: XML and JSON... well more with XML but none with JSON. So for me it would still be OK to jump on the JSON train... I am coming from Oracle/SQL databases... but the config needs to be human readable this time.
wxCrafter + JSON
-
- CodeLite Enthusiast
- Posts: 43
- Joined: Fri Jun 17, 2011 9:31 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: wxCrafter + JSON
It is already implemented along with long list of new controls ... I am at the final stage of releasing a new version (non BETA)SlimFast wrote:Just to let you know: I am working with wxCrafter as it is now several weeks and saying nothing means I didn't find any more major annoyances other those already said. I am looking forward to see AUI support - thats something I was missing personally.
Theses days, JSON is IN, XML is out (you can see how all the major companies like Google, Facebook etc have moved to use JSON for their WebAPI). Also, I find it more readable and taking less diskspaceSlimFast wrote:Of course I thought about XML, but seeing all the JSON work in wxCrafter I wonder why you preferred JSON over XML. Is there a particular reason for it (more flexibility, easier API...) or is it a matter of taste? I am asking because I don't have strong experience with both: XML and JSON... well more with XML but none with JSON
For example, a list of string saved in JSON format will be kept like this:
Code: Select all
["orange","apple","banana"]
Code: Select all
<array><item>apple</item><item>apple</item><item>banana</item>
Code: Select all
https://sourceforge.net/apps/trac/codelite/browser/trunk/Plugin/json_node.cpp
Code: Select all
JSONRoot root(cJSON_Object); // Create a cJSON object root, there other forms of ctors that allow passing file name to parse or to create an array
root.toElement().addProperty("name", "my-name");
root.toElement().addProperty("last-name", "this is my last name");
printf("%s\n", toElement().format().mb_str(wxConvUTF8).data());
Code: Select all
{ "name" : "my-name", "last-name": "this is my last name" }
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 43
- Joined: Fri Jun 17, 2011 9:31 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: wxCrafter + JSON
Oh, that sounds sweeeeet!eranif wrote:It is already implemented along with long list of new controls ... I am at the final stage of releasing a new version (non BETA)
OK, thanks for the explanation and satisfying my curiosity (and sorry for being a little off-topic).eranif wrote:Theses days, JSON is IN, XML is out [...]