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

The serializer serialitzes wrong the string arrays #866

Closed
Mrgaton opened this issue Nov 15, 2023 · 3 comments
Closed

The serializer serialitzes wrong the string arrays #866

Mrgaton opened this issue Nov 15, 2023 · 3 comments

Comments

@Mrgaton
Copy link

Mrgaton commented Nov 15, 2023

var data = new DeserializerBuilder().WithNamingConvention(CamelCaseNamingConvention.Instance).Build().Deserialize<dynamic>(savedData);

Ive used that to deserialize a yalm file and modify his content and then re serialize it but for example the string arrays doesnt serealitze well

from:

scopes:
        - "openid"
        - "link"
        - "bong"
        - "item"
        - "lol"
        - "agent"
        - "offline_access"

to :

scopes:
        -   openid: "-   openid"
        -   link: "-   link"
        -   bong: "-   bong"
        -   item: "-   item"
        -   lol: "-   lol"
        -   agent: "-   agent"
        -   offline_access: "-   offline_access"
@Mrgaton
Copy link
Author

Mrgaton commented Nov 15, 2023

to serialize it i use this:

new Serializer().Serialize(data)

@Mrgaton
Copy link
Author

Mrgaton commented Nov 15, 2023

Ok nevermind

@Mrgaton
Copy link
Author

Mrgaton commented Nov 15, 2023

i was using a homemade crappy function to add custom spaces and that what broke the array :C sory

@Mrgaton Mrgaton closed this as completed Nov 15, 2023
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

1 participant