X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=documentation%2Fapi%2Fmodules%2Fluci.jsonc.parser.html;h=709cb9afc56986886072c310519959108aae255e;hp=4c19cf0e5951a7c73f6afa08814912b55a40cae4;hb=27dd9d75f9e920150353db85cb126f2c83e89140;hpb=1cb3adb619bdd876867f4c4da615ea850464e711 diff --git a/documentation/api/modules/luci.jsonc.parser.html b/documentation/api/modules/luci.jsonc.parser.html index 4c19cf0e5..709cb9afc 100644 --- a/documentation/api/modules/luci.jsonc.parser.html +++ b/documentation/api/modules/luci.jsonc.parser.html @@ -43,19 +43,15 @@
  • - luci.http.protocol + luci.http.conditionals
  • - luci.http.protocol.conditionals + luci.http.date
  • - luci.http.protocol.date -
  • - -
  • - luci.http.protocol.mime + luci.http.mime
  • @@ -234,6 +230,13 @@ Put Lua data into the parser. + parser:sink () + + +Generate an ltn12-compatible sink. + + + parser:stringify (pretty) @@ -406,6 +409,34 @@ Nothing is returned. +
    parser:sink ()
    +
    + + +Generate an ltn12-compatible sink. + + + + + + +

    Usage:

    +
    parser = luci.jsonc.new() 
    +ltn12.pump.all(ltn12.source.file(io.input()), parser:sink()) 
    +print(parser:get())
    + + + +

    Return value:

    +Returns a function that can be used as an ltn12 sink. + + + +
    + + + +
    parser:stringify (pretty)