You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Vincent Demay (JIRA)" <ji...@apache.org> on 2008/02/27 13:55:51 UTC

[jira] Created: (SHINDIG-97) [PATCH] method toJson for java social pojo

[PATCH] method toJson for java social pojo
------------------------------------------

                 Key: SHINDIG-97
                 URL: https://issues.apache.org/jira/browse/SHINDIG-97
             Project: Shindig
          Issue Type: New Feature
          Components: Gadgets Server - Java
            Reporter: Vincent Demay
            Assignee: John Hjelmstad




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SHINDIG-97) [PATCH] method toJson for java social pojo

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572999#action_12572999 ] 

Cassie Doll commented on SHINDIG-97:
------------------------------------

This looks great! Just a couple of things before I patch:

- we use 2 spaces for all indents (yours either has tabs or 4 spaces in it)
- all brackets should be surrounded by spaces so "if (...) {"
- could the auto json use "fooBar" instead of "foo_bar"? the former is compatible with our javascript objects

Do you want to make a new patch or should I?

One last thing is that I think there are some libraries out there which will go to and from json automatically. I think this is a fantastic start though and we can swap in some library later.  

Thanks!

> [PATCH] method toJson for java social pojo
> ------------------------------------------
>
>                 Key: SHINDIG-97
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-97
>             Project: Shindig
>          Issue Type: New Feature
>          Components: Gadgets Server - Java
>            Reporter: Vincent Demay
>            Assignee: John Hjelmstad
>         Attachments: toJson.patch.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SHINDIG-97) [PATCH] method toJson for java social pojo

Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cassie Doll closed SHINDIG-97.
------------------------------

    Resolution: Duplicate

> [PATCH] method toJson for java social pojo
> ------------------------------------------
>
>                 Key: SHINDIG-97
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-97
>             Project: Shindig
>          Issue Type: New Feature
>          Components: Gadgets Server - Java
>            Reporter: Vincent Demay
>            Assignee: Cassie Doll
>         Attachments: toJson.patch.txt, toJson.patch.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SHINDIG-97) [PATCH] method toJson for java social pojo

Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Brown reassigned SHINDIG-97:
----------------------------------

    Assignee: Cassie Doll  (was: John Hjelmstad)

> [PATCH] method toJson for java social pojo
> ------------------------------------------
>
>                 Key: SHINDIG-97
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-97
>             Project: Shindig
>          Issue Type: New Feature
>          Components: Gadgets Server - Java
>            Reporter: Vincent Demay
>            Assignee: Cassie Doll
>         Attachments: toJson.patch.txt, toJson.patch.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-97) [PATCH] method toJson for java social pojo

Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Demay updated SHINDIG-97:
---------------------------------

    Attachment: toJson.patch.txt

Allow to auto generate JsonObject for a javaSocial Pojo.

> [PATCH] method toJson for java social pojo
> ------------------------------------------
>
>                 Key: SHINDIG-97
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-97
>             Project: Shindig
>          Issue Type: New Feature
>          Components: Gadgets Server - Java
>            Reporter: Vincent Demay
>            Assignee: John Hjelmstad
>         Attachments: toJson.patch.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-97) [PATCH] method toJson for java social pojo

Posted by "Vincent Demay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Demay updated SHINDIG-97:
---------------------------------

    Attachment: toJson.patch.txt

I modify the patch with your instructions, it should now be indent with 2 spaces and use fooBar instead of foo_bar.

cheers

> [PATCH] method toJson for java social pojo
> ------------------------------------------
>
>                 Key: SHINDIG-97
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-97
>             Project: Shindig
>          Issue Type: New Feature
>          Components: Gadgets Server - Java
>            Reporter: Vincent Demay
>            Assignee: John Hjelmstad
>         Attachments: toJson.patch.txt, toJson.patch.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.