lib/json: separate the pretty print from libjson0 v0.10