From 8c591404e3ce9a36acb5fbe26ceaf5d6f63048e5 Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 28 Dec 2023 19:02:03 -0600 Subject: json parsing :p --- docs/io.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/io.md b/docs/io.md index 443c978..4dba6b2 100644 --- a/docs/io.md +++ b/docs/io.md @@ -42,3 +42,12 @@ llib.io.readfile("./docs/io.md") -- (this file) - file_chunksize (512) - size of chunk to be allocated +### json_parse + +'accepts a json string + +returns a table represented by the string + +```lua +llib.io.json_parse('{"test":[5,4,3]}') -- {"test" : {5, 4, 3}} +``` -- cgit v1.2.3