Standardized toJSON, fromJSON, toString and fromString interfaces

`indexOf() > -1` for `.match()`? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match