             [goog.net.XhrIo :as xhr]
             [reagent.core :as r]
             [bookmarks.helpers :as he]
-            [bookmarks.createbookmarks :as cb])
-  (:import goog.History))
+            [bookmarks.createbookmarks :as cb]
+            [cognitect.transit :as t]
+            [goog.structs :as structs])
+  (:import goog.History)
+  )
 
 
 (defn url-format [url title]
   [:a {:href url :class "btn btn-primary"} title])
 
+(def w (t/writer :json-verbose))
 
 (defn getdata [res]
   (.getResponseJson (.-target res)))

                          (.-body js/document)))]
    (http-get "http://localhost:8090/bookmarks" onres)))

(defroute bookmark-path "/addbookmark" []
  (r/render [cb/page](.-body js/document)))

(defroute "*" []
  (js/alert "<h1>Not Found</h1>"))


(defn main

     [:div.col-sm-2 [:input.form-control {:id "sText" :type "text"
                                          :placeholder "search by title"}]]
     [:input {:type "button" :value "Search"
              :class "btn btn-primary" :on-click search}] 
     (url-format "http://localhost:8090/#/bookmark" "Add")]]
   [:table {:class "table table-striped table-bordered"}
    [:thead
     [:tr
