Schema
The "Schema" function is a great way to reconfigure your json data and make it your own.
Usage
Install
$ npm install json-functionImport
import { schema } from 'json-function';Usage
const data = [
{
id: 0,
user: {
firstname: "John",
lastname: "Doe"
},
title: "Book Name"
},
{
id: 1,
user: {
firstname: "Johnny",
lastname: "Doe"
},
title: "Book Name 2"
}
];Last updated
Was this helpful?
