diff --git a/api.c b/api.c
index a1a1836e3b1a5b755602acd72b0a50e10c53596a..1f059be691aa16504260e5d3dc289d9b8e6eb8dd 100644
--- a/api.c
+++ b/api.c
@@ -366,31 +366,3 @@ struct json_object *get(struct json_object *src, char *fmt)
 
 	return ptr;
 }
-
-int main()
-{
-	struct json_object *obj = path_to_obj("test.json");
-	struct json_object *ptr;
-
-	printf("%s %d\n", __func__, __LINE__);
-	struct json_object *arr = json_object_new_array();
-	struct json_object *obj_arr = json_object_new_object();
-
-	json_object_object_add(obj_arr, "test_arr", arr);
-	printf("tets_arr = %s\n", json_object_get_string(obj_arr));
-
-
-	printf("original obj=%s\n", json_object_get_string(obj));
-
-	ptr = get(obj, "nested");
-
-	printf("%s\n", json_object_get_string(ptr));
-
-	set_by_string(&obj, "test.asd[-1].test.tested", "{\"api_test\":\"hej\"}", json_type_object);
-
-	printf("result: %s\n", json_object_get_string(obj));
-
-	json_object_put(obj);
-	return 0;
-}
-
diff --git a/test/api_test.c b/test/api_test.c
index 20d9efbde4a4170ad1bae01b3f836c8a5b72243c..0fb24ee9b876537713609a9f7e7c75e1d3b2c081 100644
--- a/test/api_test.c
+++ b/test/api_test.c
@@ -35,29 +35,7 @@ static void test_cfg_parse_fail(void **state)
 	if (obj)
 		json_object_put(obj);
 }
-/*
-{
-    "test":"success",
-    "nested": {
-        "api":"test2"
-    },
-    "integer": 1,
-    "array": [[1, 2, 3],[3, 4, 5]],
-    "complex_nested": {
-        "dummy": {},
-        "array": [
-                {
-                        "test":"1",
-                        "test2":2
-                    },
-                {
-                        "test": "3",
-                        "test2": 4
-                }
-        ]
-    }
-}
-*/
+
 static void test_build_from_scratch(void **state)
 {
 	(void) state; /* unused */