This class represents a path in a JSON value.
| 1 | class Path: |
| 2 | """This class represents a path in a JSON value.""" |
| 3 | |
| 4 | strPath = "" |
| 5 | |
| 6 | @staticmethod |
| 7 | def root_path(): |
| 8 | """Return the root path's string representation.""" |
| 9 | return "." |
| 10 | |
| 11 | def __init__(self, path): |
| 12 | """Make a new path based on the string representation in `path`.""" |
| 13 | self.strPath = path |
| 14 | |
| 15 | def __repr__(self): |
| 16 | return self.strPath |
no outgoing calls