-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] New GRASS json API #4697
Comments
What happens when the Parson's |
The parson's own API will be internal only for |
That sounds good to me. Let's also make sure to document this in the instructions for adding third-party libraries. |
Is this a good starting point for understanding the implementation of the above-mentioned wrapper of the JSON parser with a unique Grass API? grass/include/grass/defs/gmath.h Lines 57 to 62 in fe05858
cc: @nilason @cwhite911 |
The API driven by includes will be. I don't know about the symbol lookup driven by linking. I don't know how that works exactly. |
Hey @nilason, could you guide me here? I’d like to proceed with this for merging #4665 |
Is your feature request related to a problem? Please describe.
Presently, the json parser library Parson singlehandedly is used to generate
libgrass_parson.[so/dylib]
, making its API directly a part of GRASS public API.Recent work on #4665, have revealed compatibility issues with this approach. GDAL has embedded JSON-C code, which API in part overlaps that of Parson's, causing conflicts upon linking the libgrass_parson and GDAL at the same time.
Describe the solution you'd like
In order to overcome this conflict, we could create a thin wrapper of the json parser (in this case Parson) with a unique GRASS API (with the potential additional advantage of not being completely hooked up to the use of the Parson library).
Additional context
Initially I'm thinking of wrapping function that are in use, or are likely to be used in this way
json_value_init_object()
->G_json_value_init_object()
.List (not complete) of relevant functions to wrap up :
How to deal with Parson "types" such as JSON_Object, JSON_Array and JSON_Value, whether to wrap them too or just "re-use" them, needs to be decided.
The text was updated successfully, but these errors were encountered: