JSON.from_object should pass in js object for literals