Mercurial Hosting > luan
diff src/luan/modules/RpcLuan.java @ 1112:490f77bb2ad1
add JsonParser
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 02 Aug 2017 17:37:59 -0600 |
parents | 88b5b81cad4a |
children | 22652f4020fb |
line wrap: on
line diff
--- a/src/luan/modules/RpcLuan.java Wed Aug 02 15:19:47 2017 -0600 +++ b/src/luan/modules/RpcLuan.java Wed Aug 02 17:37:59 2017 -0600 @@ -21,6 +21,7 @@ import luan.LuanException; import luan.LuanMethod; import luan.modules.parsers.Json; +import luan.lib.json.JsonParser; import luan.lib.parser.ParseException; @@ -181,7 +182,7 @@ return fn.call(luan); */ try { - return Json.parse(s); + return BasicLuan.to_luan(JsonParser.parse(s)); } catch(ParseException e) { throw new LuanException(e); }