Keras does not have a built-in way to export weights to JSON.
Solution 1:
Now you can easily do this, iterate over the weights and save it in a JSON file.
weights_list = model.get_weights()
will return a list of all weight tensors in the model, like Numpy arrays.
, , :
for i, weights in enumerate(weights_list):
writeJSON(weights)
2:
import json
weights_list = model.get_weights()
print json.dumps(weights_list.tolist())