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

Enable custom type deserialization #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mabels
Copy link

@mabels mabels commented Oct 30, 2023

      Added the functionality to deserialize orderedmaps
            into CustomTypes like `JSDict`.
            I added these method to my previous added
            OrderedMap interface:
            - SetKeys(keys []string)
            - InitValues()
            - Clone(v ...map[string]interface{}) OrderedMap

Thx for you awsome foundation.

meno

      In the decode methods the nested orderedMaps had
      not been pointer with prevents the mutation.
      To the fix broke some tests the cast to x.(OrderedMap)
      failed. To Fix this the OrderedMap is now an interface.
      This broke the TestUnmarshalJSONStruct test to fix
      the export of OrderedMapImpl is need. This change
      is a breaking!
        into CustomTypes like `JSDict`.
        I added these method to my previous added
        OrderedMap interface:
        - SetKeys(keys []string)
        - InitValues()
        - Clone(v ...map[string]interface{}) OrderedMap
             Marshal and Unmarshal
             The core is the basic functionality of
             the map
@mabels mabels force-pushed the enable-custom-type-deserialization branch from 8636dde to 280d4a8 Compare October 30, 2023 12:05
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

Successfully merging this pull request may close these issues.

1 participant