mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
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:
parent
fdd1d145cf
commit
2b716351c1
4 changed files with 48 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue