FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Read only part of subtree · Issue #120 · python-rapidjson/python-rapidjson · GitHub

Repository navigation

Read only part of subtree #120

Description

I have a fairly large JSON file (6GB) of which I only want to read a certain subtree.

I was trying to use object_hook to only return the whole object when the key matches, but object_hook is only called for leaves with values, for objects it is called with key: None.

Is there something which I can do to read only read part of the file?

Activity

  1. lelit commented on Mar 25, 2019

    Contributor

    I'm afraid there's not such a facility, at least exposed to Python, sorry. Maybe it could be implemented by a specialized Decoder, accepting a Pointer to identify the needed subtree...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL