Deserialize JSON packet variable once and use
Add data_count and mode to the result structure
Methods getPrivateKey() and getPublicKey() added