rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.utils.json_file Namespace Reference

Functions

def load (file_path, ordered=False)
 
def save (data, file_path)
 

Detailed Description

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

Function Documentation

◆ load()

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

◆ save()

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

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

Returns:
- None