Refactor cmd_print_format into r_print_format

* Enable nested specific fields access for reading and writing
* Fix pf: json regression