diff --git a/CMakeLists.txt b/CMakeLists.txt index 69dbe2d..d2c4cfd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project(parson C) include (GNUInstallDirs) -set(PARSON_VERSION 1.1.0) +set(PARSON_VERSION 1.1.1) add_library(parson parson.c) target_include_directories(parson PUBLIC $) diff --git a/LICENSE b/LICENSE index c5ee57d..64a1f04 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2012 - 2020 Krzysztof Gabis +Copyright (c) 2012 - 2021 Krzysztof Gabis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 570f063..3c65ea2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parson", - "version": "1.1.0", + "version": "1.1.1", "repo": "kgabis/parson", "description": "Small json parser and reader", "keywords": [ "json", "parser" ], diff --git a/parson.c b/parson.c index 20cb43f..d2b5141 100644 --- a/parson.c +++ b/parson.c @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: MIT - Parson 1.1.0 ( http://kgabis.github.com/parson/ ) - Copyright (c) 2012 - 2020 Krzysztof Gabis + Parson 1.1.1 ( http://kgabis.github.com/parson/ ) + Copyright (c) 2012 - 2021 Krzysztof Gabis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -960,7 +960,7 @@ static int json_serialize_to_buffer_r(const JSON_Value *value, char *buf, int le if (is_pretty) { APPEND_STRING(" "); } - temp_value = json_object_get_value(object, key); + temp_value = json_object_get_value_at(object, i); written = json_serialize_to_buffer_r(temp_value, buf, level+1, is_pretty, num_buf); if (written < 0) { return -1; diff --git a/parson.h b/parson.h index 310c3a7..12cdda3 100644 --- a/parson.h +++ b/parson.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: MIT - Parson 1.1.0 ( http://kgabis.github.com/parson/ ) - Copyright (c) 2012 - 2020 Krzysztof Gabis + Parson 1.1.1 ( http://kgabis.github.com/parson/ ) + Copyright (c) 2012 - 2021 Krzysztof Gabis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/tests.c b/tests.c index 72de9ae..e828771 100644 --- a/tests.c +++ b/tests.c @@ -2,7 +2,7 @@ SPDX-License-Identifier: MIT Parson ( http://kgabis.github.com/parson/ ) - Copyright (c) 2012 - 2020 Krzysztof Gabis + Copyright (c) 2012 - 2021 Krzysztof Gabis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal