-
I think I found a serialization/deserialization bug, for which there isn't an open issue. I ran this against the latest version of superjson about a week ago:
```
> x = sj.serialize({q: [9, {henlo…
-
Apparently, our code behaves differently in production code than in our tests.
Some snippets that don't work as intended:
```ts
SuperJSON.parse(
SuperJSON.stringify({
a: new Map([…
-
Currently, SuperJSON is unable to serialise `Map { /a/g => foo }` or any other key type that's compared by reference. This is because there can be serialisability conflicts:
```ts
m = new Map()
m…
-
We could try serializing classes similar to [typestack/class-transformer](https://github.com/typestack/class-transformer).
-
I'd like to express some virtual properties that perform asynchronous work, such as inspecting other Mongoose models. It would be nice if the virtual getters and setters accepted an optional done func…
-
SuperBMD supports more than these four formats. You should have it either allow all the formats listed [here](https://github.com/assimp/assimp/wiki/The-asset-knowledge-base) or remove the restriction …
-
Hi,
I tried to implement JSONEncodable on a class A, with 1 property. It was fine.
But, B inherits from A, and add 2 properties. I'd like to append those properties to super.toJSON() but I couldn't.
…
-
If you try to use an additional model mixin with this mixin which also overrides `toJSON` and calls `this.constructor.__super__.toJSON.apply(this, arguments);`, an infinite loop occurs due to the nest…
-
`
```
class A {
var foo:String?
public override func toJSON() -> JSON? {
return jsonify([
"foo" ~~> self.foo
])
}
}
class B:A {
var bar:String?
…
-
While parsing a function arbitrary code can be executed, e.g.
``` js
var json = require("superjson")
var str = '{"foo":"function(){process.exit(2)}()//}"}'
json.parse(str) // will exit with code 2
/…