check JSon serialization before save