-
Notifications
You must be signed in to change notification settings - Fork 24
/
example.json
58 lines (58 loc) · 1.85 KB
/
example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
/* The internal use area, if specified, must list all the data as hex string,
the length is calculated automatically */
"internal" : "010203040A0B0C0D",
"chassis" : {
"type": 10,
"pn" : "CHAS-C00L-12",
/* Fields may be given explicit types by setting to object with keys `type` and `data`*/
/* Supported types are: "bcdplus", "6bitascii" and "text" */
"serial": {
"type": "bcdplus",
"data": "45678"
},
"custom" : [
{ "data" : "Auto-typed text custom field" },
{ "type" : "binary", "data": "B14A87" },
/* For explicit text types range is not checked, so be careful */
{ "type" : "bcdplus", "data": "1234" },
{ "type" : "6bitascii", "data": "1234" },
{ "type" : "text", "data": "1234" }
]
},
"board" : {
/* The date, if not specified, will be taken automatically from
* the current system time. You may specify the `-u` option to
* `frugen` in order to leave the date 'Unspecified' */
/* "date" : "1/10/2016 3:00:45",*/
"mfg" : "Biggest International Corp.",
"pname" : "Some Cool Product",
"serial" : "123456",
"pn" : "BRD-PN-345",
"file" : "example1.json",
"custom" : [
{ "type" : "binary", "data" : "0123DEADBABE" },
{ "type" : "auto", "data" : "This is a text custom field" },
{ "type" : "auto", "data" : "This is test2" }
]
},
"product" : {
"lang": 1,
"mfg" : "Super OEM Company",
"pn" : "PRD-PN-1234",
"pname" : "Label-engineered Super Product",
"serial" : "OEM12345",
"atag" : "Accounting Dept.",
"ver" : "v1.1",
"file" : "example2.json",
"custom" : [
{ "type" : "auto", "data" : "Product Custom 1" },
{ "type" : "auto", "data" : "PRDCSTM" },
{ "type" : "auto", "data" : "PRDCSTM2" },
{ "type" : "binary", "data" : "C001BEEF" }
]
},
"multirecord" : [
{ "type" : "management", "subtype" : "uuid", "uuid" : "9bd70799-ccf0-4915-a7f9-7ce7d64385cf" }
]
}