Generate a valid JSON from a given Python dictionary.
data = {
    'name': 'John',
    'age': 25
}
import json
data = {
    'name': 'John',
    'age': 25
}

json_data = json.dumps(data)
# json_data = '{"name":"John","age":25}'