MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / fromJSON

Method fromJSON

projects/JavaScript/proto/test.js:12718–12720  ·  view source on GitHub ↗

* Convert JSON to struct * @param {!string} json JSON string * @returns {!object} Struct value for JSON

(json)

Source from the content-addressed store, hash-verified

12716 * @returns {!object} Struct value for JSON
12717 */
12718 static fromJSON (json) {
12719 return StructBytes.fromObject(JSON.parse(json))
12720 }
12721
12722 /**
12723 * Create struct from object value

Callers

nothing calls this directly

Calls 2

fromObjectMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected