Skip to main content
Module

x/flat/examples/json/json-example.ts

A collection of postprocessing utilities for flat
Latest
File
import { readJSON, writeJSON } from '../../src/json.ts' // replace with latest library https://deno.land/x/flat@0.0.x/mod.ts
const json = await readJSON('./examples/json/data.json')
// a New custom json to saveconst newData = { 'image': json.url}
await writeJSON('./examples/json/post-data.json', newData)