You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added support for [Charred](https://github.com/cnuernber/charred) as a JSON formatter module, from [Nik Peric](https://github.com/nikolap)[#139](https://github.com/metosin/muuntaja/pull/139)
13
-
- Improved performance for `content-type`, from [Ben Sless](https://github.com/bsless)[#128](https://github.com/metosin/muuntaja/pull/128), fixes [#127](https://github.com/metosin/muuntaja/issues/127)
14
+
- Added support for [Charred](https://github.com/cnuernber/charred) as a JSON formatter module, from [Nik Peric](https://github.com/nikolap)[#139](https://github.com/metosin/muuntaja/pull/139)
15
+
- Improved performance for `content-type`, from [Ben Sless](https://github.com/bsless)[#128](https://github.com/metosin/muuntaja/pull/128), fixes [#127](https://github.com/metosin/muuntaja/issues/127)
14
16
15
17
* Fixes
16
-
- Fixed CVEs in SnakeYAML dependency ([#137](https://github.com/metosin/muuntaja/issues/137))
17
-
- Fixed `decode-response-body` when body content is falsey, from [lotuc](https://github.com/lotuc)[#136](https://github.com/metosin/muuntaja/pull/136), fixes [#134](https://github.com/metosin/muuntaja/issues/134)
18
+
- Fixed CVEs in SnakeYAML dependency ([#137](https://github.com/metosin/muuntaja/issues/137))
19
+
- Fixed `decode-response-body` when body content is falsey, from [lotuc](https://github.com/lotuc)[#136](https://github.com/metosin/muuntaja/pull/136), fixes [#134](https://github.com/metosin/muuntaja/issues/134)
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ but a complete rewrite ([and up to 30x faster](doc/Performance.md)).
20
20
21
21
*`metosin/muuntaja` - the core abstractions + [Jsonista JSON](https://github.com/metosin/jsonista), EDN and Transit formats
22
22
*`metosin/muuntaja-cheshire` - optional [Cheshire JSON](https://github.com/dakrone/cheshire) format
23
+
*`metosin/muuntaja-charred` - optional [Charred](https://github.com/cnuernber/charred) format
23
24
*`metosin/muuntaja-form` - optional `application/x-www-form-urlencoded` formatter using [ring-codec](https://github.com/ring-clojure/ring-codec)
24
25
*`metosin/muuntaja-msgpack` - Messagepack format
25
26
*`metosin/muuntaja-yaml` - YAML format
@@ -34,16 +35,17 @@ for detailed API documentation as well as more guides on how to use Muuntaja.
34
35
## Latest version
35
36
36
37
```clj
37
-
[metosin/muuntaja "0.6.8"]
38
+
[metosin/muuntaja "0.6.9"]
38
39
```
39
40
40
41
Optionally, the parts can be required separately:
41
42
42
43
```clj
43
-
[metosin/muuntaja-form "0.6.8"]
44
-
[metosin/muuntaja-cheshire "0.6.8"]
45
-
[metosin/muuntaja-msgpack "0.6.8"]
46
-
[metosin/muuntaja-yaml "0.6.8"]
44
+
[metosin/muuntaja-form "0.6.9"]
45
+
[metosin/muuntaja-cheshire "0.6.9"]
46
+
[fi.metosin/muuntaja-charred "0.6.9"]
47
+
[metosin/muuntaja-msgpack "0.6.9"]
48
+
[metosin/muuntaja-yaml "0.6.9"]
47
49
```
48
50
49
51
Muuntaja requires Java 1.8+
@@ -91,7 +93,7 @@ Automatic decoding of request body and response body encoding based on `Content-
91
93
{"content-type""application/edn"
92
94
"accept""application/transit+json"}
93
95
:body"{:kikka 42}"})
94
-
96
+
95
97
(app request)
96
98
; {:status 200,
97
99
; :body #object[java.io.ByteArrayInputStream]
@@ -102,7 +104,7 @@ Automatic decoding of response body based on `Content-Type` header:
102
104
103
105
```clj
104
106
(-> request app m/decode-response-body)
105
-
; {:kikka 42}
107
+
; {:kikka 42}
106
108
```
107
109
108
110
There is a more detailed [Ring guide](doc/With-Ring.md) too. See also [differences](doc/Differences-to-existing-formatters.md) to ring-middleware-format & ring-json.
0 commit comments