Added functions: json_array_insert json_array_insert_new json_array_remove json_array_clear json_array_extend
All pointer arguments are now tested for NULL. json_string() now also tests that strdup() succeeds. This is to ensure that no NULL values end up in data structures. Also desribe the different sources of errors in documentation.
The non-stealing functions are now just simple wrappers around these.