mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-26 01:18:22 +01:00
fix json parse bug
This commit is contained in:
parent
f176ddddac
commit
68c9177508
BIN
dist/lua-0.5.2b.tar.gz
vendored
BIN
dist/lua-0.5.2b.tar.gz
vendored
Binary file not shown.
@ -245,6 +245,7 @@ static int l_json_parser(lua_State *L, const char* s)
|
||||
int r = jsmn_parse(&p, s, strlen(s), t, sizeof(t)/sizeof(t[0]));
|
||||
if (r < 0) {
|
||||
LOG("Failed to parse JSON: %d\n", r);
|
||||
lua_pushnil(L);
|
||||
return 0;
|
||||
}
|
||||
token_to_object(L,t,s,0);
|
||||
|
Loading…
Reference in New Issue
Block a user