code: def save_json(network, filepath, indent=None):
      """
      Save network parameters in JSON format.
  
      Parameters
      ----------
      {save_dict.network}
  
      filepath : str
          Path to the JSON file that stores network parameters.
  
      indent : int or None
          Indentation that would be specified for the output JSON.
          Intentation equal to `2` or `4` makes it easy to read raw
          text files. The `None` value disables indentation which means
          that everything will be stored compactly. Defaults to `None`.
  
      Examples
      --------
      >>> from neupy import layers, storage
      >>>
      >>> network = layers.Input(10) > layers.Softmax(3)
      >>> storage.save_json(network, '/path/to/parameters.json')
      """
      network = extract_network(network)
      data = save_dict(network)
  
      with open(filepath, "w") as f:
          # Without extra data processor we won't be able to dump
          # numpy array into json without raising an error.
          # `json` will have issues with numpy array encoding
          convert_numpy_array_to_list_recursively(data)
          return json.dump(data, f, indent=indent, default=repr)
  
imports: import json
  from time import gmtime, strftime
  import six
  import h5py
  import numpy
  import tensorflow
  from six.moves import cPickle
  import neupy
  from neupy.core.docs import shared_docs
  from neupy.layers.graph import LayerGraph
  from neupy.algorithms.base import BaseNetwork
  from neupy.utils import asfloat, tf_utils
label_desc: Use image node_id 13 for calling a global function with example usage: save_json(network, filepath, indent) and returns: json