rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.utils.json_file Namespace Reference

Functions

def load
 
def save
 

Detailed Description

Load and save JSON data.
No exception handling at all: should be handled by the caller.

Function Documentation

def rfm2.utils.json_file.load (   file_path,
  ordered = False 
)
Load a JSON file from disk.

Args:
- file_path (FilePath): The fully qualified file path.

Returns:
- dict: The JSON data
def rfm2.utils.json_file.save (   data,
  file_path 
)
Save a dict as a JSON file.

Args:
- data (dict): The JSON data.

Returns:
- None