(json_str, _swap)
| 69 | |
| 70 | |
| 71 | def _safe(json_str, _swap): |
| 72 | out = json_str |
| 73 | for unsafe_char, safe_char in _swap: |
| 74 | if unsafe_char in out: |
| 75 | out = out.replace(unsafe_char, safe_char) |
| 76 | return out |
| 77 | |
| 78 | |
| 79 | def to_json_plotly(plotly_object, pretty=False, engine=None): |
no test coverage detected