We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently builds allow namespaces to be built by referencing the namespace as a string argument:
new JSONifier({namespace: 'a'}).add({'b': 'c'}).build('a') > {'b': 'c'}
We need more options to allow output to be customised. Namespaces should be used for 2 cases:
.build('a') .build({namespace:'a'})
.build({namespace:['a', 'b', 'c']})
let a = new JSONifier({namespace: 'a'}) .add({'a': '1'}) .add({'b': '2'}); let b = new JSONifier({namespace: 'b'}) .add({'b': 'woot'}); b.build('a').next().value > {'a': '1', 'b': '2'} b.build({namespace: 'a'}).next().value > {'a': '1', 'b': '2'} b.build('b').next().value > {'b': 'woot'} b.build().next().value > {'a': {'a': '1', 'b': '2'}, 'b': {'b': 'woot'}} b.build({nest: false}).next().value > {'a': '1', 'b': 'woot'}
The text was updated successfully, but these errors were encountered:
1022ec3
blakef
No branches or pull requests
Overview
Currently builds allow namespaces to be built by referencing the namespace as a string argument:
Limits
We need more options to allow output to be customised. Namespaces should be used for 2 cases:
Future
The text was updated successfully, but these errors were encountered: