readJson method

Future<DataFrame> readJson(
  1. String path, {
  2. JsonReadOptions options = const JsonReadOptions(),
})

Implementation

Future<DataFrame> readJson(
  String path, {
  JsonReadOptions options = const JsonReadOptions(),
}) async {
  _validateLocalPath(path);
  _validatePositive(options.inferSchemaLength, 'options.inferSchemaLength');
  _validatePositive(options.batchSize, 'options.batchSize');
  return _adoptFrame(
    await _client.invoke('frameReadJson', {
      'path': path,
      ...options._toJson(),
    }),
  );
}