End of file expected.json 解决方案

以下json报错:End of file expected.json

{"dialog": ["i'm doing great . just relaxing with my two dogs .", "great . in my spare time i do volunteer work .", "that's neat . what kind of volunteer work do you do ?", "i work in a homeless shelter in my town .", "good for you . do you like vintage cars ? i've two older mustangs .", "cool . not really into cars . my day job is wrestling .", "cars are my thing . vintage cars . i love working on them . wrestling ? do you enjoy it ?", "yes , i love the crowds , getting to know people .", "i didn't think about the crowd aspect of wrestling . i do not like crowds .", "understood . when i need to be alone , i work out a few times each week .", "i agree . working out is a great way to burn off steam . do you like country music ?", "a little bit . i can get into taylor swift .", "lol . she's more pop now . her old stuff was country . i like classic country ."], "concepts": [["dog", "relax"], ["time", "volunteer", "work"], ["kind", "volunteer", "work"], ["shelter", "town", "work"], ["mustang", "car"], ["job", "day", "car", "wrestle"], ["love", "enjoy", "work", "thing", "car", "wrestle"], ["know", "love", "crowd"], ["wrestling", "aspect", "crowd"], ["work", "need", "time", "week", "understand"], ["agree", "work", "country", "music", "burn", "steam"], ["swift", "bit"], ["pop", "country", "stuff"]], "easy_target": "country", "hard_target": "tum", "entity_path": ["dog", "time", "kind", "town", "car", "job", "car", "love", "crowd", "time", "work", "bit", "country"]}
{"dialog": ["no , we recently purchased a new house , so we cannot afford it . have you ?", "yes i love mickey mouse such a cute little rat", "i enjoy going to concerts , i see the rolling stones every year .", "man your lucky i am a baby delivery nurse and the pay sucks", "maybe you should consider going back to school . i did . i major in economics .", "i have to walk 3 miles to work to save money everyday what do you do ?", "i mostly eat a fresh and raw diet , so i save on groceries ."], "concepts": [["house", "afford", "purchase"], ["love", "rat"], ["enjoy", "year", "see", "stone", "concert"], ["delivery", "suck", "baby", "man", "nurse", "pay"], ["school", "major", "economic"], ["save", "work", "money", "walk", "mile"], ["grocery", "diet", "eat", "save"]], "easy_target": "eat", "hard_target": "urea", "entity_path": ["house", "love", "stone", "man", "school", "money", "eat"]}
{"dialog": ["i am doing good . just sipping tea . what do you do for work ?", "i used to do home health aide but now i am disabled .", "i am sorry to hear that . what happened", "i graduated and got my license worked a while and became i'll .", "so what do you do now for fun ? i like to read .", "i have dogs and i walk them . and a cat .", "what kind of dogs do you have ?", "i enjoy reading read about michael jackson and psychology today .", "i love reading . i have a big library at my house .", "that's very nice i love to read to and read about journals .", "i've a tough time hearing so reading is my happy place ."], "concepts": [["good", "sip", "tea", "work"], ["aide", "home", "use", "health"], ["hear", "happen"], ["work", "become", "license", "graduate"], ["fun", "read"], ["dog", "walk", "cat"], ["kind", "dog"], ["enjoy", "read", "psychology", "today"], ["library", "love", "read", "house"], ["love", "read", "journal"], ["time", "place", "reading", "hearing"]], "easy_target": "place", "hard_target": "pluralist", "entity_path": ["work", "use", "hear", "work", "fun", "cat", "dog", "read", "library", "read", "place"]}

首先有一个在线json校验网站:https://jsonlint.com/ 可以上去查一下

这个解决方案很简单,因为这里面的每一个字典相当于一个元素 每个字典之间用 , 隔开 最后在在最外层加一个 [ ] 就可以了

意思是,这是一个列表,列表中的每一个字典是一个元素,元素之间用 , 隔开

prefect!
关注 + 求赞 + 收藏吧

  • 11
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
包含以下java源文件: com.google.gson.DefaultDateTypeAdapter.class com.google.gson.ExclusionStrategy.class com.google.gson.FieldAttributes.class com.google.gson.FieldNamingPolicy.class com.google.gson.FieldNamingStrategy.class com.google.gson.Gson.class com.google.gson.GsonBuilder.class com.google.gson.InstanceCreator.class com.google.gson.JsonArray.class com.google.gson.JsonDeserializationContext.class com.google.gson.JsonDeserializer.class com.google.gson.JsonElement.class com.google.gson.JsonIOException.class com.google.gson.JsonNull.class com.google.gson.JsonObject.class com.google.gson.JsonParseException.class com.google.gson.JsonParser.class com.google.gson.JsonPrimitive.class com.google.gson.JsonSerializationContext.class com.google.gson.JsonSerializer.class com.google.gson.JsonStreamParser.class com.google.gson.JsonSyntaxException.class com.google.gson.LongSerializationPolicy.class com.google.gson.TreeTypeAdapter.class com.google.gson.TypeAdapter.class com.google.gson.TypeAdapterFactory.class com.google.gson.annotations.Expose.class com.google.gson.annotations.SerializedName.class com.google.gson.annotations.Since.class com.google.gson.annotations.Until.class com.google.gson.internal.ConstructorConstructor.class com.google.gson.internal.Excluder.class com.google.gson.internal.JsonReaderInternalAccess.class com.google.gson.internal.LazilyParsedNumber.class com.google.gson.internal.LinkedTreeMap.class com.google.gson.internal.ObjectConstructor.class com.google.gson.internal.Primitives.class com.google.gson.internal.Streams.class com.google.gson.internal.UnsafeAllocator.class com.google.gson.internal.bind.ArrayTypeAdapter.class com.google.gson.internal.bind.CollectionTypeAdapterFactory.class com.google.gson.internal.bind.DateTypeAdapter.class com.google.gson.internal.bind.JsonTreeReader.class com.google.gson.internal.bind.JsonTreeWriter.class com.google.gson.internal.bind.MapTypeAdapterFactory.class com.google.gson.internal.bind.ObjectTypeAdapter.class com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.class com.google.gson.internal.bind.SqlDateTypeAdapter.class com.google.gson.internal.bind.TimeTypeAdapter.class com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.class com.google.gson.internal.bind.TypeAdapters.class com.google.gson.reflect.TypeToken.class com.google.gson.stream.JsonReader.class com.google.gson.stream.JsonScope.class com.google.gson.stream.JsonToken.class com.google.gson.stream.JsonWriter.class com.google.gson.stream.MalformedJsonException.class

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值