Correct assert conditions for json_object_push and json_array_push