Expose nd.format_json function to Python