Sfoglia il codice sorgente

documentation for with_trailer option

pull/71/head
lwalkin 10 anni fa
parent
commit
4480ca3558
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      README.md

+ 4
- 0
README.md Vedi File

@ -42,6 +42,10 @@ The options for decode are:
* `return_maps` - Tell Jiffy to return objects using the maps data type * `return_maps` - Tell Jiffy to return objects using the maps data type
on VMs that support it. This raises an error on VMs that don't support on VMs that support it. This raises an error on VMs that don't support
maps. maps.
* `with_trailer` - Tell Jiffy to return the trailing unparsed data (if any) along with
the parsed term instead of failing with {error,{_,invalid_traling_data}}. When
the trailer is available, the return value is {with_trailer, EJson, Trailer},
where Trailer is a sub-binary of the input, for efficiency.
`jiffy:encode/1,2` `jiffy:encode/1,2`
------------------ ------------------

Caricamento…
Annulla
Salva