Automatic JSON serialization based on KVO