* encode/decode json over OOP