UNPKG

packme-js

Version:

Blazing fast binary serialization via auto-generated classes from simple JSON manifest files.

35 lines 675 B
{ "type_enum": [ "one", "two", "four" ], "nested_object": { "a": "uint8", "b": "string" }, "test": [ { "req_id": "binary12", "?opt_id": "binary12", "req_ids": ["binary4"], "?opt_ids": ["binary4"], "req_int8": "int8", "req_uint16": "uint16", "req_double": "double", "req_bool": "bool", "req_string": "string", "?opt_int8": "int8", "?opt_uint16": "uint16", "?opt_double": "double", "?opt_bool": "bool", "?opt_string": "string", "req_list": ["uint8"], "?opt_list": ["uint8"], "req_enum": "@type_enum", "?opt_enum": "@type_enum", "req_nested": "@nested_object", "?opt_nested": "@nested_object" } ] }