{"id":22441675,"url":"https://github.com/mohammadkarbalaee/json-html-parser","last_synced_at":"2025-07-27T00:35:08.357Z","repository":{"id":127249197,"uuid":"354756726","full_name":"mohammadkarbalaee/JSON-HTML-parser","owner":"mohammadkarbalaee","description":"This project aimed to mimic what Gson and Jackson packages do in Java world","archived":false,"fork":false,"pushed_at":"2022-04-28T20:57:47.000Z","size":121,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-14T19:12:33.881Z","etag":null,"topics":["java","json","parsing","shahid-beheshti-university","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohammadkarbalaee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-04-05T07:40:28.000Z","updated_at":"2022-12-09T14:18:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c79e2e3-8af8-4346-bf61-2e8053d39b0d","html_url":"https://github.com/mohammadkarbalaee/JSON-HTML-parser","commit_stats":null,"previous_names":["mohammadkarbalaee/json-html-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohammadkarbalaee/JSON-HTML-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadkarbalaee%2FJSON-HTML-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadkarbalaee%2FJSON-HTML-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadkarbalaee%2FJSON-HTML-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadkarbalaee%2FJSON-HTML-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammadkarbalaee","download_url":"https://codeload.github.com/mohammadkarbalaee/JSON-HTML-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadkarbalaee%2FJSON-HTML-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267276979,"owners_count":24063220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","json","parsing","shahid-beheshti-university","web-scraping"],"created_at":"2024-12-06T02:15:43.257Z","updated_at":"2025-07-27T00:35:08.333Z","avatar_url":"https://github.com/mohammadkarbalaee.png","language":"Java","readme":"# series-4\n\n## json parser   \nimplement classes in sbu.cs.parser.json package.  \n* extract good methods  \n* declare classes where is needed\n* all json that you need to parse have only 5 possible value types\n    1. String\n    2. number\n    3. boolean (true or false)\n    4. null\n    5. array\n* all json that you need to parse have these rules\n    1. keys are in double quote (\" \")\n    2. between key and value there is :\n    3. between each key/value pair there is a comma (,)\n    4. a json object will always start with { and end with }\n    \n\n#### more score\n* implement function getValue which return the value of a key\n   which is not necessarily a String. it can be int, null, boolean \n   or another Json object. for this you probably need to declare classes\n   for values.\n   \n* write a json parser which can parse json that have a key mapped to\n   another json.  \n\n## dom\nimplement classes in sbu.cs.parser.html package.\n* extract good methods\n* declare classes where is needed\n* in all html Strings given to parse these rules are considered.\n    1. all tags that start will end eventually. there is no tag that \n       opens and never close.\n    2. tags may have attributes and all attributes are in key/value pairs\n#### more score\n* implement function toHTMLString that gets a Dom object (Node root) and \n    return a String that is the html representation of dom object (opposite of parse)\n\n\n---\n## String trim function\n```java\nString str = \"  salam \";\nSystem.out.println(str.trim());     // will print 'salam'\n```  \nread about this function. you may need what it does in this series.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadkarbalaee%2Fjson-html-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadkarbalaee%2Fjson-html-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadkarbalaee%2Fjson-html-parser/lists"}