JSON.fromFoo(f) => JSON(foo:f) // old factory methods still exist