Do json encode before saving entry data

Signed-off-by: Ramnique Singh <mail@ramniquesingh.name>