[dancer-users] Returning JSON Data
kadirbeyazli at gmail.com
Tue Sep 15 21:30:55 BST 2015
On Tue, Sep 15, 2015 at 1:05 AM, WK <wanradt at gmail.com> wrote:
> 2015-09-15 0:18 GMT+03:00 Kadir Beyazlı <kadirbeyazli at gmail.com>:
>> content-type is text/html at both cases (with and without serializer),
>> not application/json when i curl url.
> It is very strange. If you use my example, save it as script and run
> it, you got content type "text/html"?
>> But it works
>> And when I use serializer, other routes fail because other routes
>> don't return json data.
> You need to run 2 applications: one for html and other for serialized
> data (JSON). Sawyer X wrote wonderful article about it in last advent
> It is pretty easy and I assure you, it gives right content types too ;)
Thank you very much! Everything is OK now.
> Kõike hääd,
> dancer-users mailing list
> dancer-users at dancer.pm
GSM : +90 535 821 50 00
More information about the dancer-users