diff options
author | Johannes Rudolph <johannes.rudolph@gmail.com> | 2014-03-12 14:35:24 +0100 |
---|---|---|
committer | Johannes Rudolph <johannes.rudolph@gmail.com> | 2014-03-12 14:36:48 +0100 |
commit | df6863a973b1a2ded68e07eddbb9a2baa8daf169 (patch) | |
tree | e0a99df5e9b7015e924e50f4c7c13550727e476d /src/main/scala/spray/json/package.scala | |
parent | 43d37d7cc08bb25957e6692baae0856ca1f522d4 (diff) | |
download | spray-json-df6863a973b1a2ded68e07eddbb9a2baa8daf169.tar.gz spray-json-df6863a973b1a2ded68e07eddbb9a2baa8daf169.tar.bz2 spray-json-df6863a973b1a2ded68e07eddbb9a2baa8daf169.zip |
rename asJson => parseJson, fixes #89
Diffstat (limited to 'src/main/scala/spray/json/package.scala')
-rw-r--r-- | src/main/scala/spray/json/package.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/spray/json/package.scala b/src/main/scala/spray/json/package.scala index 5bf5714..fe37c8b 100644 --- a/src/main/scala/spray/json/package.scala +++ b/src/main/scala/spray/json/package.scala @@ -40,6 +40,8 @@ package json { } private[json] class PimpedString(string: String) { - def asJson: JsValue = JsonParser(string) + @deprecated("deprecated in favor of parseJson", "1.2.6") + def asJson: JsValue = parseJson + def parseJson: JsValue = JsonParser(string) } }
\ No newline at end of file |