JSON serialization of new PCE API.