Implemented PB -> JSON