Started to fix PCE API changes
JSON serialization of new PCE API.