Mercurial Hosting > luan
diff src/luan/modules/Parsers.luan @ 794:f16c77ef0f4f
add Parsers.json_string and Thread.global
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 05 Sep 2016 16:08:00 -0600 |
parents | 1a68fc55a80c |
children | bae2d0c2576c |
line wrap: on
line diff
--- a/src/luan/modules/Parsers.luan Mon Sep 05 15:19:44 2016 -0600 +++ b/src/luan/modules/Parsers.luan Mon Sep 05 16:08:00 2016 -0600 @@ -9,7 +9,8 @@ M.bbcode_to_html = BBCode.toHtml M.bbcode_to_text = BBCode.toText M.csv_to_list = Csv.toList -M.json_parse = Json.parse +M.json_parse = Json.parse -- converts json string to luan object +M.json_string = Json.toString -- converts luan object to json string M.theme_to_luan = Theme.toLuan return M