GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Have a validator's __call__ return the parsed json if no validation error is raised? · Issue #153 · python-rapidjson/python-rapidjson

Have a validator's __call__ return the parsed json if no validation error is raised? #153

New issue
Copy link
New issue
Copy link
Open
Open
Have a validator's __call__ return the parsed json if no validation error is raised?#153
Copy link

Description

@jessekrubin
jessekrubin
opened on Feb 24, 2021
Issue body actions

It would be nice if I could validate and loads a json string/bytes in one swell foop. Assuming that the validator must parse the json when performing validation, it should be pretty easy to return the parsed results post validation, right?

Reacted by Kevin04

Activity

  1. lelit commented on Feb 24, 2021

    @lelit
    lelit
    on Feb 24, 2021
    Contributor
    More actions

    Seems quite reasonable, yes 😉

  2. lelit commented on Feb 24, 2021

    @lelit
    lelit
    on Feb 24, 2021
    Contributor
    More actions

    Thinking a bit more, I'm not sure it would be the right thing to do: I mean, the validation does not parse the JSON stream into Python objects, so that requires an extra step anyway; and generally you want to specify some option, or even a custom decoder...

  3. jessekrubin commented on Mar 2, 2021

    @jessekrubin
    jessekrubin
    on Mar 2, 2021
    Author
    More actions

    Pass on args and kwargs? Including the default method?

    I like the idea of validating and parsing in one swell foop.

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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.