webmcp

changeset 160:d5e5e8a9b79a

Added __tostring metamethod to JSON arrays and JSON objects
author jbe
date Thu Jul 31 03:57:11 2014 +0200 (2014-07-31)
parents ddb9b9b0d210
children d476b3c8960d
files libraries/json/json.c
line diff
     1.1 --- a/libraries/json/json.c	Thu Jul 31 03:54:57 2014 +0200
     1.2 +++ b/libraries/json/json.c	Thu Jul 31 03:57:11 2014 +0200
     1.3 @@ -827,6 +827,7 @@
     1.4    {"__newindex", json_newindex},
     1.5    {"__pairs", json_pairs},
     1.6    {"__ipairs", json_ipairs},
     1.7 +  {"__tostring", json_export},
     1.8    {NULL, NULL}
     1.9  };
    1.10  

Impressum / About Us