Add proper json answer

Summary: Add proper json answer support, using a C json library.

Test Plan: manual test with Advanced REST client

Reviewers: cprodescu

Differential Revision: http://phab.code4fun.de/D31