我有一个返回公平嵌套JSON的方法,例如:
JsonSlurper
当我尝试使用def result
将此JSON插入// json == “[[fizz: buzz, foos: [[count: 4, flim: flam], [count: 6, flim: flume]]]]"
String json = getJSON()
JsonSlurper slurper = new JsonSlurper()
def result = slurper.parseText(json)
时,我会遇到异常:
parseText
生成Caught: groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object
执行时抛出的异常:
pyspark.mllib.feature.Word2Vec
任何想法是什么修复?