Add json parsing unit test
Fix buffer printing in json value to string