Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
parse string as sequence of json objects separated by white space (for indexing notations x[1][2]["this"]...)

        def stringAsJsonSequence(inString):
    """parse string as sequence of json objects separated by white space (for indexing notations x[1][2]["this"]...)"""
    if type(inString) not in types.StringTypes:
        raise ValueError, "cannot parse non-string as sequence "+repr(type(inString))
    lString = len(inString)
    result = []
    endIndex = 0
    while endIndex
    


src/w/h/whiff-1.1/whiff/namecomponent.py   whiff(Download)
def parse_name(name):
    if "[" in name:
        location = name.find("[")
        jsonIndices = name[location:]
        wrappedindices = jsonParse.stringAsJsonSequence(jsonIndices)