def json_post(methodname, rtype, key):
    'decorator factory for json POST queries'
    return compose(reusable, map_return(registry(rtype), itemgetter(key)), basic_interaction, map_yield(partial(_json_as_post, methodname)), oneyield)
decorator factory for json POST queries
def json_post(methodname, rtype, key):
    
    return compose(reusable, map_return(registry(rtype), itemgetter(key)), basic_interaction, map_yield(partial(_json_as_post, methodname)), oneyield)