The pp.dat file is encoded in a format known as (Real-Time Object Notation). To develop an editor, you must be able to decode this binary format into a readable one like JSON, modify the values, and then re-encode it.
Before making any edits, always back up your original pp.dat file to your PC and email a copy to yourself. That way, when (not if) the game crashes, you can restore your vanilla save in 30 seconds. pvz2 save editor
Using a PVZ2 save editor is relatively straightforward. Here's a step-by-step guide: The pp