kore/examples/json_yajl
Joris Vink b27322933b The default pid file is kore.pid so no need to set that explicitely 2014-08-05 13:11:53 +02:00
..
conf The default pid file is kore.pid so no need to set that explicitely 2014-08-05 13:11:53 +02:00
src Add an example that parses JSON via yajl 2014-08-04 21:06:02 +02:00
.gitignore Add an example that parses JSON via yajl 2014-08-04 21:06:02 +02:00
README.md Add a link to yajl repo 2014-08-04 21:06:35 +02:00

README.md

This example demonstrates how you can use external libs in your application.

In this case we link against yajl (Yet Another JSON library) in order to parse a JSON string that was POSTed to the server.

Run:

	env KORE_LDFLAGS="-lyajl" kore run

Test:

	curl -i -k -d '{"foo":{"bar": "Hello world"}}' https://127.0.0.1:8888

The result should echo back the foo.bar JSON path value: Hello world.

The yajl repo is available @ https://github.com/lloyd/yajl