JSON Parsing Library for GSoC 14

I already have done some work over such a library, but this library by me has limited features and need to be improvised. And hence, I am thinking about doing this work during this GSoC 14. But I have certain questions about it. 1) Who will be taking the design decisions for the development of the library ? Whether the student or the mentor will be responsible for the decisions ? 2) To which formats should the library parse the JSON ? The current library by me parses JSON to Maps and Vectors. I am intending to provide flexibility, but if some specifications will be available it'll be helpful. 3) Is the library to be kept as simple as possible in terms of User Interface ? Or, should we use factory patterns to provide more flexibility to the advanced users ? Have a nice day, everybody. Best wishes Ganesh Prasad

As for the JSON library, if I'm correct there is already something in
Boost.PropertyTree that works pretty well ?
See:
http://www.boost.org/doc/libs/1_55_0/doc/html/boost_propertytree/parsers.htm...
However, maybe generalizing the idea of parsing tag based text files could
be a great addition to Boost. A little bit like Boost.Proto is a library
for creating DSL in C++, you could try to make a library to parse tag based
language and as a proof of concept, show that it can parse XML, JSON and a
subset of LaTeX.
By the way, this gentleman would like to be mentored for GSOC 2014. I
personally recommend him.
Best,
David
On Fri, Feb 28, 2014 at 7:11 AM, Ganesh Prasad
I already have done some work over such a library, but this library by me has limited features and need to be improvised. And hence, I am thinking about doing this work during this GSoC 14. But I have certain questions about it.
1) Who will be taking the design decisions for the development of the library ? Whether the student or the mentor will be responsible for the decisions ?
2) To which formats should the library parse the JSON ? The current library by me parses JSON to Maps and Vectors. I am intending to provide flexibility, but if some specifications will be available it'll be helpful.
3) Is the library to be kept as simple as possible in terms of User Interface ? Or, should we use factory patterns to provide more flexibility to the advanced users ?
Have a nice day, everybody. Best wishes Ganesh Prasad
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

On 28.02.2014 12:15, David Bellot wrote:
As for the JSON library, if I'm correct there is already something in Boost.PropertyTree that works pretty well ? See: http://www.boost.org/doc/libs/1_55_0/doc/html/boost_propertytree/parsers.htm...
There's also TinyJSON, build on few boost libraries: http://git.mortis.eu/git/tinyjson.git/tree It seems like this space is a bit packed. - Volodya

yes, I do agree. JSON is not new any more and many good solutions exists even in Boost. I'd rather see something where you can define tags and their structure and have a compile-time solution providing the smallest parser possible. Maybe something like a string data packets parsing library would be great too, where you could either define tags in text format or simply bit fields or byte fields. I'm dreaming a little bit. So for any "not-too-complex" format, you'll be able to define a simple parser with functions being triggered any time you meet a tag or recognize a field. Boost.function, boost.signals2 etc would help. Maybe a Boost.Streamdecode library would be great. It's a standard problem. Or a Boost.ParseTags library... My 2 cents, David

On Fri, Feb 28, 2014 at 9:15 AM, David Bellot
As for the JSON library, if I'm correct there is already something in Boost.PropertyTree that works pretty well ? See:
http://www.boost.org/doc/libs/1_55_0/doc/html/boost_propertytree/parsers.htm...
No. See: http://boost.2283326.n4.nabble.com/Using-property-tree-as-json-reader-writer... There was some work for such library based on Spirit but I don't know where it's at now.

https://github.com/cierelabs/json_spirit
Mateusz Loskot, http://mateusz.loskot.net
(Sent from mobile, apology for broken quotes or top-posting)
On 28 Feb 2014 13:25, "Klaim - Joël Lamotte"
On Fri, Feb 28, 2014 at 9:15 AM, David Bellot
wrote:
As for the JSON library, if I'm correct there is already something in Boost.PropertyTree that works pretty well ? See:
http://www.boost.org/doc/libs/1_55_0/doc/html/boost_propertytree/parsers.htm...
No. See:
http://boost.2283326.n4.nabble.com/Using-property-tree-as-json-reader-writer...
There was some work for such library based on Spirit but I don't know where it's at now.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (5)
-
David Bellot
-
Ganesh Prasad
-
Klaim - Joël Lamotte
-
Mateusz Łoskot
-
Vladimir Prus