pyampact.symbolicUtils.fromJSON

pyampact.symbolicUtils.fromJSON(json_path)[source]

Load a JSON or dez file/url into a pandas DataFrame.

The outermost keys of the JSON object are interpreted as the index values of the DataFrame and should be in seconds with decimal places allowed. The second-level keys become the columns of the DataFrame.

Parameters:

json_path – Path to a JSON or dez file.

Returns:

A pandas DataFrame representing the JSON data.

See also

jsonCDATA(), nmats()

Example

piece = Score('./test_files/CloseToYou.mei.xml')
piece.fromJSON(json_path='./test_files/CloseToYou.json')