MBStyle SpriteGraphicFactory returns a "Error: could not match input" against valid JSON file

Description

While reading this valid JSON sprite file:
https://rawgit.com/lukasmartinelli/osm-liberty/gh-pages/sprites/osm-liberty.json

The factory returns the error:

Caused by: java.lang.Error: Error: could not match input
at org.json.simple.parser.Yylex.zzScanError(Unknown Source)
at org.json.simple.parser.Yylex.yylex(Unknown Source)
at org.json.simple.parser.JSONParser.nextToken(Unknown Source)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at org.geotools.mbstyle.sprite.SpriteGraphicFactory.getSpriteIndex(SpriteGraphicFactory.java:285)
at org.geotools.mbstyle.sprite.SpriteGraphicFactory.getIcon(SpriteGraphicFactory.java:130)
at org.geotools.renderer.style.SLDStyleFactory.getIcon(SLDStyleFactory.java:1333)
at org.geotools.renderer.style.SLDStyleFactory.getTexturePaint(SLDStyleFactory.java:1082)
at org.geotools.renderer.style.SLDStyleFactory.getPaint(SLDStyleFactory.java:1045)
at org.geotools.renderer.style.SLDStyleFactory.setPolygonStyleFill(SLDStyleFactory.java:402)
at org.geotools.renderer.style.SLDStyleFactory.createPolygonStyle(SLDStyleFactory.java:358)
at org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:312)
at org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:279)
at org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:252)
at org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2925)
at org.geotools.renderer.lite.StreamingRenderer.processFeature(StreamingRenderer.java:2800)
... 129 more

Unclear why, but json-simple might be involved.

Environment

None

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Components

Fix versions

Priority

Medium
Configure