Okay, that's a documentation bug and is on me.
There are actually several things wrong with the example: JSON requires property names to be quoted, double quotes used throughout, and doesn't allow a trailing comma after the last array entry or property. Here's a properly-formatted file:
{
"name": "Hunger-Pig Feeder 5000",
"author": "Some Weird Guy",
"summary": "Get eaten by the hunger-pig in your closet",
"resolution": "3840x2160", // in awesome 4K HD!
"script": "scripts/main.js",
"minimumPlatform": {
"recommend": "minisphere 3.0 or later", // note: for display purposes only
"apiVersion": 2.0,
"extensions": [
"sphere-legacy-api",
"sphere-obj-constructors",
"sphere-obj-props",
"sphere-map-engine",
"sphere-rng-object",
"sphere-s2gm",
"sphere-spherefs"
]
}
}
I'll update the documentation. I also added a log line when an S2GM file can't be parsed to avoid confusion in the future.