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

Method fromJSON

projects/JavaScript/proto/test.js:6410–6412  ·  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

6408 * @returns {!object} Struct value for JSON
6409 */
6410 static fromJSON (json) {
6411 return StructOptional.fromObject(JSON.parse(json))
6412 }
6413
6414 /**
6415 * Create struct from object value

Callers

nothing calls this directly

Calls 2

fromObjectMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected