Separated PB to JSON processing