Refactor JSON handling and improve code clarity

- Updated error messages in Http.jsonDecode for better context.
- Enhanced serialization error handling in CompactJson5Serializer.
- Reformatted struct definitions in tests for improved readability.
- Adjusted assertions in tests for better clarity and consistency.
- Refactored project file name checks for improved readability.
This commit is contained in:
Joe 2026-01-22 22:22:03 -06:00
parent fdd1d145cf
commit 2b716351c1
4 changed files with 48 additions and 15 deletions

View file

@ -72,7 +72,7 @@ function Http.jsonDecode(source)
if success then
return result
end
print("[HTTP Response:json()] Native decode failed, using JSON5 for size:", #self.body)
print("[Http.jsonDecode] Native decode failed, using JSON5 for size:", #source)
return JSON5Decoder.Decode(source)
end