Put PR to/from JSON code in PR class