You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minecraft Forge uses GSON to read mcmod.info files, which unfortunately allows for multi-line strings to be used - for example, take the following from the Chisel mod (shortened down).
[{
"credits": "AUTOMATIC_MAIDEN for the original mod,asie for porting to 1.7.2,and Pokenfenn/Cricket for continuing it in 1.7.This mod uses textures from the Painterly Pack: http://painterlypack.net/."
}]
Go's encoding/json library does not accept JSON input, throwing an error - specifically invalid character '\n' in string literal.
EDIT: See the Stackoverflow question for potential solutions.
The text was updated successfully, but these errors were encountered:
There is 2 benefits to using jsonparser:
1. We can read from files with multi-line strings (GH-2)
2. We can handle errors better, giving an actual error - as we're able to
determine which format is in use.
Signed-off-by: Jamie Mansfield <jmansfield@cadixdev.org>
Minecraft Forge uses GSON to read
mcmod.info
files, which unfortunately allows for multi-line strings to be used - for example, take the following from the Chisel mod (shortened down).Go's
encoding/json
library does not accept JSON input, throwing an error - specificallyinvalid character '\n' in string literal
.EDIT: See the Stackoverflow question for potential solutions.
The text was updated successfully, but these errors were encountered: