indexeddb-export-import
Version:
Export/import an IndexedDB database to/from JSON
98 lines (94 loc) • 1.29 kB
JSON
{
"shapes": [
{
"id":1,
"name":"circle",
"info":[
{
"value":10,
"a":{
"foo":"bar"
}
}
]
},
{
"id":2,
"name":"triangle",
"info":[
{
"value":20
}
]
},
{
"id":3,
"name":"square",
"info":[
{
"value":30
}
]
},
{
"id":4,
"name":"rectangle",
"info":[
{
"value":40
}
]
},
{
"id":5,
"name":"oval",
"info":[
{
"value":40
}
]
},
{
"id":6,
"name":"diamond",
"info":[
{
"value":0
}
]
}
],
"colors":[
{
"id":1,
"name":"red"
},
{
"id":2,
"name":"green"
},
{
"id":3,
"name":"blue"
}
],
"color_shape":[
{
"shape":1,
"color":2
},
{
"shape":1,
"color":3
},
{
"shape":2,
"color":2
},
{
"shape":2,
"color":1
}
],
"empty":[]
}