use json_close_object instead of json_close_table
[project/netifd.git] / dummy / netifd-proto.sh
index 48b1292..de1961d 100755 (executable)
@@ -110,9 +110,9 @@ _proto_push_route() {
 
        json_add_table ""
        json_add_string target "$target"
-       json_add_integer mask "$mask"
+       json_add_string mask "$mask"
        json_add_string gateway "$gw"
-       json_close_table
+       json_close_object
 }
 
 _proto_push_array() {