You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'use strict';
const YAWN = require('yawn-yaml/cjs');
let str = `
en-GB: ~
`;
let yawn = new YAWN(str);
let json = yawn.json;
json["en-GB"] = { key1: "test" };
yawn.json = json;
let str2 = yawn.yaml
console.log(str2);
// The output is
// en-GB: [object Object]
// But I expect it to be
// en-GB:
// key1: "test"
When changing a null value to an object, it gets sent to
replacePrimitive
, which turns it into the string[object Object]
.yawn-yaml/src/index.js
Lines 224 to 232 in d870fbe
The text was updated successfully, but these errors were encountered: