Skip to content

TASK: Add JSON serialization/deserialization of a Person #142

Description

@TheGittyPerson

Leave a comment if you want to work on this task!

Difficulty: Intermediate to Upper Intermediate

This task is an extension of task #141. You can wait for that one to be completed and merged first, or take/help complete the task.

TODO:

  • Add a to_json() method to the Person class. Use the methods from TASK: Implement Person serialization to a dictionary #141 in your implementation.
  • If whoever completed task 141 did not write a dictionary deserialization method, you don't have to write a JSON deserializer method either. Otherwise, make sure you makefrom_json() a classmethod.
  • Remember to add type hints and docstrings where necessary and follow PEP 8

PR steps:

  1. Fork this repo
  2. Clone the forked repo
  3. Create a new branch and name it feat/person-json-serialization
  4. Push commits to your remote fork
  5. Create a PR titled TASK: Add JSON serialization/deserialization of a `Person` (#142)
  6. At the end of the PR description, add Closes #142
  7. Submit the PR (Ensure you allow maintainers to edit)

Please make sure you have read the Contributing Guidelines before working.


Feel free to ask any questions here!

If you are interested in working on this task,
please leave a comment requesting assignment to explicitly let others know the task is taken and prevent duplicate PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    continuationContinued or extended from a previous task/PR/issuefeatureNew feature or enhancementgood first issueGood for newcomershelp wantedExtra attention is neededtaskThis is a task issue / PR completing a task🦗 Upper IntermediateGood for growing devs with good confidence and experience in programming🦟 IntermediateGood for growing devs who've been coding for a while

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions