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

Implement decoder #1

Merged
merged 1 commit into from
Jul 4, 2021
Merged

Implement decoder #1

merged 1 commit into from
Jul 4, 2021

Conversation

mycognosist
Copy link
Member

  • Add decode() capability and helper functions
  • Remove regex and lazy_static dependencies
    • Perform string manipulations using standard library features (ie. .rfind() and .strip_suffix())
  • Rename ConvertedValue enum to EncodedValue
    • Rename variants to match JS expectations (Array, Buffer, Object)
    • Replace HashMap with IndexMap to preserve field order in key-value objects
  • Add a test to encode and decode a heterogeneous JSON object

More tests and docs tomorrow.

@mycognosist mycognosist added the enhancement New feature or request label Jul 4, 2021
@mycognosist mycognosist merged commit dc863da into main Jul 4, 2021
@mycognosist mycognosist deleted the decoder branch July 4, 2021 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant