from some_module import some_dictionary
json_obj = json.dumps(some_dictionary, sort_keys=True, indent=4)
print(""".. code-block:: JavaScript

    %s

""" % json_obj)
Displaying dictionary data in Sphinx documentation