Use a JSON-writer library from iproute instead of complicated printf statement. Also output timestamp, rtt and min_rtt as integers in nanoseconds, rather than floats in seconds. Signed-off-by: Simon Sundberg <simon.sundberg@kau.se>