I would like to parse a JSON5 object in Groovy, the reason why I want to use JSON5 is because I need to use the comment feature in groovy. So say for example, the JSON5 object would look like
{
// comments
"A":"123",
"B":"456"
}
This JSON5 object cannot be parsed by readJSON or JsonSlurper in Groovy.
I found there is a library in Python named JSON5 can do exactly what I needed, but the problem is my code is in Groovy.
So I am wondering if there is a library in Groovy can do this, or if there is any alternate decent way to handle it?