Actual comparison with Clojure:
(require [clojure.data.json :as json])
(defn xform [s]
(-> s
json/read-str
(update "foo" + 2)
json/write-str))
Your example is Clojurescript with interop