# flask 3.1.3 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Serialize data as JSON and write to a file.

        :param obj: The data to serialize.
        :param fp: A file opened for writing text. Should use the UTF-8
            encoding to be valid JSON.
        :param kwargs: May be passed to the underlying JSON library.
        
=== parse rest
short_description: 'Serialize data as JSON and write to a file.'
blank_after_short_description: True
blank_after_long_description: False
style: rest
- DocstringParam
  description: 'The data to serialize.'
  kind: param
  key: 'param'
  arg_name: 'obj'
  is_optional: False
- DocstringParam
  description: |
    A file opened for writing text. Should use the UTF-8
    encoding to be valid JSON.
  kind: param
  key: 'param'
  arg_name: 'fp'
  is_optional: False
- DocstringParam
  description: 'May be passed to the underlying JSON library.'
  kind: param
  key: 'param'
  arg_name: 'kwargs'
  is_optional: False
=== detect
rest
=== compose rest
Serialize data as JSON and write to a file.

:param obj: The data to serialize.
:param fp: A file opened for writing text. Should use the UTF-8
    encoding to be valid JSON.
:param kwargs: May be passed to the underlying JSON library.
