The current answers contain a lot of hand-rolled or library code. This is not necessary.
-
Use
JSON.parse('{"a":1}')
to create a plain object. -
Use one of the standardized functions to set the prototype:
Object.assign(new Foo, { a: 1 })
Object.setPrototypeOf({ a: 1 }, Foo.prototype)