Comments (2)
I wasn't able to reproduce this issue. That's the code I used:
#include <assert.h>
#include "parson.h"
int main()
{
JSON_Value *file1_value = json_parse_file("1.json"); /* http://pastebin.com/X5tjG9hd */
assert(file1_value != NULL);
JSON_Object *root_object = json_value_get_object(file1_value);
assert(root_object != NULL);
JSON_Object *protection = json_object_get_object(root_object, "protection");
assert(protection != NULL);
JSON_Value *file2_value = json_parse_file("2.json"); /* http://pastebin.com/W2YnuXsj */
assert(file2_value != NULL);
JSON_Status status = json_object_set_value(protection, "macs", file2_value);
assert(status == JSONSuccess);
char* result = json_serialize_to_string(file1_value);
assert(result != NULL);
puts(result);
}
Could you include full example that shows this issue?
from parson.
Yeah, it is my error.
I have write function and found error in my code. Sorry for false Issue.
Closed.
from parson.
Related Issues (20)
- LLVM clang 4.0.3 compliation - "%g is unsupported" HOT 4
- Excess precision for small floating point numbers. HOT 16
- kgabis.github.com/parson returns 404 HOT 1
- Is it possible to add option to ignoring the last comma? HOT 3
- Build using meson HOT 13
- JSON Merge HOT 1
- Question on errors - Get information about what failed HOT 1
- why not check the "processed" in parson.c
- clublog-users.json.zip HOT 1
- scan-build bugs
- Accepting invalid array HOT 1
- EOF not enforced HOT 1
- Completion of error handling
- Improve exception handling
- Segmentation fault after invoking json_object_clear() and json_object_remove() back to back. HOT 1
- What if enclosingn [] is missing? HOT 3
- sprintf hard-deprecated on MacOS prevents compiling HOT 3
- Validate JSON inputs HOT 3
- Unstable memory access conflicts that occur when running on Win7 HOT 2
- json_serialize_to_string_pretty received signal SIGABRT, Aborted. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parson.