Search found 3 matches

by BeChris
Fri Aug 02, 2019 11:47 pm
Forum: SDK
Topic: New plugin: Json Parser
Replies: 18
Views: 4055

Re: New plugin: Json Parser

Hello, I adapted an Lua json decoder from https://github.com/rxi/json.lua Here it is: /* * Converted from json.lua code at https://github.com/rxi/json.lua * Conversion done by Christophe Gouiran (bechris13250@gmail.com) * * Original copyright: * * json.lua * * Copyright (c) 2019 rxi * * Permission ...
by BeChris
Fri Aug 02, 2019 11:43 pm
Forum: SDK
Topic: New plugin: Json Parser
Replies: 18
Views: 4055

Re: New plugin: Json Parser

Thanks for the port as well, BeChris! Not sure about other opinions, but I think you should update you code at one line. In the function "parse_array(str, i)" I would set Local n to 0 (zero) not 1. I know that in the original Lua code this is set to 1, but IMHO Hollywood uses zero-based indices (at...
by BeChris
Mon Apr 29, 2019 10:49 pm
Forum: SDK
Topic: New plugin: Json Parser
Replies: 18
Views: 4055

Re: New plugin: Json Parser

Hello, I adapted an Lua json decoder from https://github.com/rxi/json.lua Here it is: /* * Converted from json.lua code at https://github.com/rxi/json.lua * Conversion done by Christophe Gouiran (bechris13250@gmail.com) * * Original copyright: * * json.lua * * Copyright (c) 2019 rxi * * Permission i...