change ser/deser in PSS to JSON