When recursively calling spdk_json_write_val() on another object or array, the child call will handle printing out the whole subobject/array, so the parent call should skip over all of its values. Also fix the return value for the array/object case - if we get to the end of the array or object, we should return 0 for success. Change-Id: I1da80c88ab8759620114c1ab141baaaaf9f0023a Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| json_write_ut.c | ||
| Makefile | ||