ensure json is formatted in a readable way