Hi,
I have a config file that contains a Clojure map. If I slurp that file it
obviously returns a string.
Is it possible to return that read file as a map (its original data
structure) and not a string?
Thanks
Paul
--
--
You received this message because you are subscribed to the Google
G
Hi,
I am requiring clojure.java.io as such
(ns sample-project.core
(:require [clojure.java.io :as io]))
However, the first expression creates a file object
(clojure.java.io/file "test")
#
The second expression explodes with "java.lang.RuntimeException: No such
namespace: io"
(io/file "/tmp/pa
, it looks like it doesn't exist.
>
> Paul Smith
> January 27, 2014 8:21 AM
> Hi,
>
> I am attempting to use Java interoperability.
>
> I have downloaded a dependency through Leiningen
>
> [com.jayway.jsonpath/json-path "0.9.1"]
>
> I import the d
Hi Jarrod
> Any reason not to use a Clojure library like cheshire for JSON?
Yes, I am probably taking the wrong approach. Is the Clojure way to put the
JSON in Clojure data structures and manipulate it with filters etc?
Many Thanks
Paul
On Mon, Jan 27, 2014 at 3:35 PM, Jarrod Swart wrote:
>
Hi,
I am attempting to use Java interoperability.
I have downloaded a dependency through Leiningen
[com.jayway.jsonpath/json-path "0.9.1"]
I import the dependency into a namespace
(:import (com.jayway.jsonpath JsonPath)
The Java class, JsonPath has a static method 'read' that takes two
string
Hi,
Through restrictions, I am prevented from using Leiningen on the CI
server and I am attempting to package Clojure through Maven.
I have a core.clj with a (:gen-class) in the namespace and a (-main).
My project.clj includes a :main and :aot with the value of the main
namespace.
I can 'lein u