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

to_json compatibility with Python json #102

Merged
merged 1 commit into from
Dec 19, 2022
Merged

to_json compatibility with Python json #102

merged 1 commit into from
Dec 19, 2022

Commits on Dec 19, 2022

  1. # to_json compatibility with Python json

    Updates `to_json` methods to return `str` types so that they can be used with Python `json`
    
    ## Changes
    - Separated type validation into `CompatiblePyType`, which validates incoming Python types to ensure they can be represented in ycrdt.
    - Added JsonBuilder, which can append json from any JsonBuildable object to a string buffer.
    - Updated tests to cover to_json conversion.
    - Changed YArray iterator method to return a PyIterator on eagerly evaluated array contents.
    Waidhoferj committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    4cfb192 View commit details
    Browse the repository at this point in the history