moonsharp icon indicating copy to clipboard operation
moonsharp copied to clipboard

JsonTableConverter.JsonToTable can't handle escaped forward slash

Open bplu4t2f opened this issue 8 years ago • 0 comments

In JSON, forward slash may be escaped. JsonTableConverter.TableToJson even automatically does that, but the Lexer that is used for both Lua and JSON can't handle that.

Making \/ an acceptable escape sequence will technically break compliance with Lua.

See https://github.com/bplu4t2f/moonsharp/commit/8017622cae23a64a7976f63ca11d08ff3c8f601e

See https://github.com/bplu4t2f/moonsharp/commit/58cbd4df54d29d1a2a7f030958d12aa2710de9b4

bplu4t2f avatar Feb 04 '17 15:02 bplu4t2f