JSON functionality minor bug fix

Changed JSON data output to printf, as it's formatted for it.