JSON serialization implemented.