F# 为什么我的JsonProvider在解析文件时会导致异常?
有人能解释一下我做错了什么吗 使用JsonProvider时,我收到以下异常消息:F# 为什么我的JsonProvider在解析文件时会导致异常?,f#,type-providers,F#,Type Providers,有人能解释一下我做错了什么吗 使用JsonProvider时,我收到以下异常消息: open FSharp.Data type MovieProvider = JsonProvider<"https://facebook.github.io/react-native/movies.json"> let result = MovieProvider.Parse "https://facebook.github.io/react-native/movies.json" let re
open FSharp.Data
type MovieProvider = JsonProvider<"https://facebook.github.io/react-native/movies.json">
let result = MovieProvider.Parse "https://facebook.github.io/react-native/movies.json"
let result = MovieProvider.Parse "https://facebook.github.io/react-native/movies.json"
System.Exception:从字符0开始的JSON无效,代码段=
json=
我的代码如下:
open FSharp.Data
type MovieProvider = JsonProvider<"https://facebook.github.io/react-native/movies.json">
let result = MovieProvider.Parse "https://facebook.github.io/react-native/movies.json"
let result = MovieProvider.Parse "https://facebook.github.io/react-native/movies.json"
注:
我正在引用这个。您正在尝试将URL解析为JSON。您可能需要
MovieProvider.Load
您正试图将URL解析为JSON。您可能需要MovieProvider.Load
您正在尝试将URL解析为JSON。您可能需要电影提供商。加载…Duh。。。我觉得这样问太傻了。谢谢@GuyCoder完成。@MarkSeemann感谢您试图将URL解析为JSON。您可能需要电影提供商。加载…Duh。。。我觉得这样问太傻了。谢谢@GuyCoder完成了。@MarkSeemann谢谢