summaryrefslogtreecommitdiff
path: root/fs/read_json.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fs/read_json.ts')
-rw-r--r--fs/read_json.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/read_json.ts b/fs/read_json.ts
index 1bed75078..8979c24e8 100644
--- a/fs/read_json.ts
+++ b/fs/read_json.ts
@@ -1,9 +1,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import * as path from "./path/mod.ts";
/** Reads a JSON file and then parses it into an object */
export async function readJson(filePath: string): Promise<any> {
- filePath = path.resolve(filePath);
const decoder = new TextDecoder("utf-8");
const content = decoder.decode(await Deno.readFile(filePath));
@@ -18,7 +16,6 @@ export async function readJson(filePath: string): Promise<any> {
/** Reads a JSON file and then parses it into an object */
export function readJsonSync(filePath: string): any {
- filePath = path.resolve(filePath);
const decoder = new TextDecoder("utf-8");
const content = decoder.decode(Deno.readFileSync(filePath));