COMPAS
  • Home
  • Docs
  • Extensions
  • Examples
  • Contribute
  • 1.10.0
  1. docs
  2. API Reference
  3. compas
  4. robots
  5. ParentLink
  6. ParentLink.to_json

ParentLink.to_json

ParentLink.to_json(filepath, pretty=False)[source]

Serialize the data representation of an object to a JSON file.

Parameters
  • filepath (path string or file-like object) – The path or file-like object to the file containing the data.

  • pretty (bool, optional) – If True serialize a pretty representation of the data. Default is False.

  • Introduction
  • Installation
  • Getting started
  • Tutorial
  • API Reference
    • compas
      • artists
      • data
      • datastructures
      • files
      • geometry
      • numerical
      • plugins
      • robots
      • rpc
      • topology
      • utilities
    • compas_rhino
    • compas_blender
    • compas_ghpython
    • compas_plotters
  • Extension points
  • Developer Guide
  • Changelog
  • Releases
  • License
  • Citing
Previous
ParentLink.to_data
Next
ParentLink.to_jsonstring

COMPAS

A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.

Copyright © 2017-2021 compas-dev