llnl / json-cwx Goto Github PK
View Code? Open in Web Editor NEWJSON-C with Extensions
License: Other
JSON-C with Extensions
License: Other
This is a modified version of the JSON-C library. Its moniker is json-cwx (json-c with extensions) The initial version was obtained from here, https://github.com/json-c/json-c/releases, numbered 0.12-20140410. Among other things, it has been modified to support * Optimized, homogenously typed, multi-dimensional arrays. That is, arrays whose members are NOT json objects but the individual array elements in a larger buffer. These are 'extarr' object types. * Enumerated types. * Path-oriented object get/set methods. * Path get methods that can accept paths such as "a/gorfo/5/foo/7" where if gorfo and foo are array objects, then 5 and 7 are treated as array indices. If gorfo and foo are 'normal' objects, then '5' and '7' are treated as the member keys of the objects. * A find method that is a lot like Unix' find except that it can find a matching sub-path from the specified root. These modifications have not been pushed back to JSON-C implementors. This is primarily because many of these enhancements kinda sorta fall outside the original design scope (IMHO) of JSON in general and JSON-C in particular. In fact, the extarr and enum types break the JSON-C ascii string syntax. For licensing of JSON-C, please read json-c-0.12-20140410b/COPYING # Release JSON-CWX is a part of [MACSio](https://github.com/LLNL/MACSio) and as such is released under the terms of the GPL license. For full details see the [LICENSE](/LICENSE) file. LLNL-CODE-676051
Hi.
I wonder what the expected compatibility with json-c is. Should I always be able to use json-cwx in place of json-c?
If not, this becomes a problem with RPM auto-dependency generation and RPM's auto-provides/requires generators as this library "looks" to tools such as YUM/DNF to be json-c in a repo-md YUM/DNF repository and will be selected when an RPM wants libjson-c.so.2
.
After compiling successfully, the make check
test failed.
=========================================
json-cwx 0.12: tests/test-suite.log
=========================================
# TOTAL: 12
# PASS: 11
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test1
===========
json_object_from_file: error opening file foo.json: No such file or directory
ERROR: "test1 " (test1) failed (set VERBOSE=1 to see full output):
+ diff /lustre/home/.../json-cwx/tests/test1.expected testSubDir/test1.test/test1.out
cp "testSubDir/test1.test/test1.out" "/lustre/home/.../json-cwx/tests/test1.expected"
json_object_from_file: error opening file foo.json: No such file or directory
ERROR: "test1Formatted plain" (test1Formatted_plain) failed (set VERBOSE=1 to see full output):
+ diff /lustre/home/.../json-cwx/tests/test1Formatted_plain.expected testSubDir/test1.test/test1Formatted_plain.out
cp "testSubDir/test1.test/test1Formatted_plain.out" "/lustre/home/.../json-cwx/tests/test1Formatted_plain.expected"
json_object_from_file: error opening file foo.json: No such file or directory
ERROR: "test1Formatted spaced" (test1Formatted_spaced) failed (set VERBOSE=1 to see full output):
+ diff /lustre/home/.../json-cwx/tests/test1Formatted_spaced.expected testSubDir/test1.test/test1Formatted_spaced.out
cp "testSubDir/test1.test/test1Formatted_spaced.out" "/lustre/home/.../json-cwx/tests/test1Formatted_spaced.expected"
json_object_from_file: error opening file foo.json: No such file or directory
ERROR: "test1Formatted pretty" (test1Formatted_pretty) failed (set VERBOSE=1 to see full output):
+ diff /lustre/home/.../json-cwx/tests/test1Formatted_pretty.expected testSubDir/test1.test/test1Formatted_pretty.out
cp "testSubDir/test1.test/test1Formatted_pretty.out" "/lustre/home/.../json-cwx/tests/test1Formatted_pretty.expected"
FAIL test1.test (exit status: 1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.