Skip to content
New issue

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

Unclear how to change to camelCase #34

Closed
shanedev6 opened this issue Nov 28, 2019 · 1 comment
Closed

Unclear how to change to camelCase #34

shanedev6 opened this issue Nov 28, 2019 · 1 comment

Comments

@shanedev6
Copy link

No description provided.

@olosegres
Copy link
Owner

Something like this:

import Jsona, { SwitchCaseModelMapper, SwitchCaseJsonMapper } from 'jsona';

const jsona = new Jsona({
    modelPropertiesMapper: new SwitchCaseModelMapper(),
    jsonPropertiesMapper: new SwitchCaseJsonMapper()
});

Note, that each Mapper has its own options, like switchChar (by default it '-'), for more details see constructors here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants