Closed zhaopuming closed 10 years ago
If you need your data encoded in a specific format, you're responsible for doing that encoding. There currently isn't any util methods that give you back a json string, You can easily define your own method as (def json (comp str vertx.utils/encode))
.
Thanks for the clarification, I'll define my own function :-)
I want to response with a JSON format data, like:
but when I do this:
I got this:
Now I have to do a trick to force encod in JSON:
Is this the prefered approach? Or is there an convenient method like
(json result)
?