{"id":24377763,"url":"https://github.com/aissat/jaa","last_synced_at":"2025-04-10T19:51:36.648Z","repository":{"id":78277529,"uuid":"77167435","full_name":"aissat/Jaa","owner":"aissat","description":"Vala  samrt Json lib auto convert Josn to Object","archived":false,"fork":false,"pushed_at":"2019-05-22T11:46:20.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T17:49:55.764Z","etag":null,"topics":["class","converter","gnome","gtk","gtk3","json","json-api","json-parser","json-schema","json2obj","jsonapi","libjson","object","object-oriented-programming","vala","vala-library"],"latest_commit_sha":null,"homepage":"","language":"Vala","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/aissat.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-22T18:34:26.000Z","updated_at":"2022-11-08T21:57:27.000Z","dependencies_parsed_at":"2023-04-05T00:23:54.198Z","dependency_job_id":null,"html_url":"https://github.com/aissat/Jaa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aissat%2FJaa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aissat%2FJaa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aissat%2FJaa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aissat%2FJaa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aissat","download_url":"https://codeload.github.com/aissat/Jaa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248283718,"owners_count":21077909,"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","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":["class","converter","gnome","gtk","gtk3","json","json-api","json-parser","json-schema","json2obj","jsonapi","libjson","object","object-oriented-programming","vala","vala-library"],"created_at":"2025-01-19T06:16:57.020Z","updated_at":"2025-04-10T19:51:36.633Z","avatar_url":"https://github.com/aissat.png","language":"Vala","readme":"# Jaa\nVala  samrt Json lib \n\n## example\n\n```vala\n\nusing Jaa;\nusing Gee;\n\npublic class Mens :Object {\n\n  public string firstName        {get ; set; default =\"\";}\n  public string lastName         {get ; set; default =\"\";}\n  public int    age              {get ; set; default = -1;}\n\n  public Mens (){\n    stdout.printf (\" #########!!!!!!!!!!!!  \\n\");\n  }\n  public  void print_obj (){\n    stdout.printf (\"%s ######\u003e %s ######\u003e %i \\n\",this.firstName,this.lastName, this.age );\n  }\n}\n\n\npublic class JHumans : Object  {\n\n\tpublic string firstName         {get ; set; default = \"\"   ;}\n\tpublic string lastName          {get ; set; default = \"\"   ;}\n\tpublic string Name              {get ; set; default = \"\"   ;}\n\tpublic int    age               {get ; set; default = -1   ;}\n\tpublic double tall              {get ; set; default = -1.0 ;}\n\tpublic bool   married           {get ; set; default = false;}\n\n\tpublic Mens man                 {get ; set;} //construct\n\tpublic ArrayList\u003cMens\u003e mens     {get ; set;}\n\tpublic ArrayList\u003cint\u003e  Numbers  {get ; set;}\n\tpublic ArrayList\u003cstring\u003e Labels {get ; set;}\n\n\tpublic JHumans (){}\n\n\tconstruct{\n\t\tthis.mens   = new ArrayList \u003cMens\u003e ();\n\t}\n\n  public void print_obj (){\n    man.print_obj();\n\n    mens.get(0).print_obj();\n    mens.get(1).print_obj();\n    stdout.printf (\"%s =\u003e %s ==\u003e %i : %s ## %.2f ## %s  \\n\",this.firstName,this.lastName ,\n    \t\t\tthis.Numbers.get(1),this.Labels.get(1),\n    \t\t\tthis.tall,this.married.to_string () );\n  }\n}\n\n/**\n *\n */\npublic class Ones : GLib.Object {\n\n  /**\n   *\n   */\n\n  public JHumans Human     {get ;  set;}\n  construct{\n \t\tthis.Human   = new JHumans  ();\n \t}\n  public Ones () {\n    Human.print_obj();\n    stdout.printf (\"test age: %i\\n\", this.Human.age);\n  }\n\n\n}\n\nint main () {\n\nstring str = \"\"\"\n\t[\n    {\n      \"Human\":{\n\t\t\t\"firstName\"  : \"Aissat\",\n\t\t\t\"lastName\"   : \"Abdou\" ,\n\t\t\t\"Name\"       : \"abdelwahab\" ,\n\t\t\t\"age\"        : 26     ,\n\t\t\t\"tall\"       : 1.90  ,\n\t\t\t\"married\"    : true  ,\n\t\t\t\"Numbers\"    : [90,23,933] ,\n\t\t\t\"Labels\"     : [\"foo\",\"bar\"],\n\t\t\t\"man\"        : {\n\t\t\t\t\"firstName\" : \"Mohamed\",\n\t\t\t\t\"lastName\"  : \"aissat\" ,\n\t\t\t\t\"age\"       : 29\n\t\t\t\t},\n\t\t\t\"mens\"        :\n\t\t\t\t[\n\t\t\t\t\t{ \"firstName\" : \"Ali\",\n\t\t\t\t\t  \"lastName\"  : \"Ahmed\",\n\t\t\t\t\t  \"age\"        : 26\n\t\t\t\t\t   },\n\t\t\t\t\t{ \"firstName\" : \"Omar\",\n\t\t\t\t\t  \"lastName\"  : \"hani\" ,\n\t\t\t\t\t  \"age\"        : 29\n\t\t\t\t\t}\n\t\t\t\t]\n      }\n\t\t}\n  ]\"\"\";\n\n\tJParser p = new JParser (str);\n\n  JReaderArrayObject\u003cOnes\u003e test = new JReaderArrayObject\u003cOnes\u003e(p.node);\n\tstdout.printf (\"test age: %i\\n\", test.get(0).Human.age);\n\ttest.get(0).Human.print_obj();\n\n\t//JReaderObject\u003cJHumans\u003e tst = new JReaderObject\u003cJHumans\u003e(node);\n\t//tst.get_object().print_obj();\n\nreturn 0;\n\n\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faissat%2Fjaa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faissat%2Fjaa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faissat%2Fjaa/lists"}