Entity->JSON->Entity conversion for Node and Browser.