Anderson Mesquita 316be5ee34 Add helper function to format JSON responses
Every time a JSON object is returned in an HTTP response, the
appropriate header needs to be set and the object itself needs to be
encoded. Doing this in every function is repetitive and error prone
(getDBFile and postDBScan, for instance, never set any headers).

This adds a helper function to centralize the appropriate JSON response
handling.
2015-12-16 09:06:17 +01:00
..
2015-08-09 09:35:26 +02:00
2015-09-22 19:38:46 +02:00
2015-09-22 19:38:46 +02:00
2015-10-23 20:21:21 +01:00
2015-07-27 19:00:22 +01:00
2015-03-17 16:02:27 +01:00
2014-07-01 12:20:25 +02:00