Json read, write and pretty print