Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def format(jsonCompatibleValue, readable=True):
    L = list(formatValue(jsonCompatibleValue, readable=readable))
    return "".join(L)

src/w/h/whiff-1.1/whiff/namecomponent.py   whiff(Download)
        if typeArg in whiffenv.JSON_TYPES:
            # format as json
            payload = jsonParse.format(theArg)
            # just make sure it's a string.

src/w/h/whiff-1.1/whiff/cgicomponent.py   whiff(Download)
        # convert the value if it's a json type to a json format
        if typeValue in whiffenv.JSON_TYPES:
            theValue = jsonParse.format(theValue)
        #theValue = qq(theValue) # this is redundant
        # otherwise try to use the default

src/w/h/whiff-1.1/whiff/tester.py   whiff(Download)
        D = {}
        D["TESTER_URL"] = tester_url
        D["WSGI_ENVIRONMENT"] = stream.mystr(rdjson.jsonParse.format(env))
        D["SCRIPT_NAME"] = repr(env.get("SCRIPT_NAME"))
        D["PATH_INFO"] = repr(env.get("PATH_INFO"))
        D["QUERY_STRING"] = repr(env.get("QUERY_STRING"))
        D["WSGI_INPUT"] = input
        D["APPLICATION_TO_TEST"] = application_text
        D["EXPECT_STATUS"] = status
        D["EXPECT_HEADERS"] = stream.mystr(rdjson.jsonParse.format(headers))