Skip to content

Conversation

@ItsDrike
Copy link
Contributor

This adds python-native implementation for handling cjson encode/decode lua calls.

Resolves: #304 (already closed, but only with a workaround solution, whereas this PR adds a much more versatile solution without forcing users to handle dynamic binary blob linking and compilation of the lua-cjson lib).

Most of the relevant things regarding the thought process behind this implementation was mentioned in the 2 issue comments I sent, so I'll just link those here, rather than repeating what I already mentioned:

@ItsDrike ItsDrike requested a review from cunla as a code owner July 20, 2025 16:56
@cunla
Copy link
Owner

cunla commented Jul 28, 2025

Thanks for this addition.
Do you mind writing tests that cover it?

It is currently not covered by the tests in test_scripting

@ItsDrike
Copy link
Contributor Author

ItsDrike commented Aug 2, 2025

Tests should be in, LMK if they're fine or if you want something more. I also added support for arrays, solving the issue I had, I just used the same behavior that cjson has for this.

@cunla cunla merged commit 1fe2d68 into cunla:master Aug 6, 2025
49 of 51 checks passed
@ItsDrike ItsDrike deleted the cjson-support branch August 6, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add better support for LUA scripts

2 participants