Menu

#7 remove the class node

closed
5
2009-11-28
2007-06-27
Anonymous
No

don't call the getClass method for every object or at least make it optional.

I've noticed also empty array indices such as :

{"people":[,{"birthdate":
198940304037,"class":"flexjson.test.mock.Person"}]}

Usually at the begining of an array but who knows where else or why this is happpening. This is invalid JSON, if it is due to null values add a null string or [] check out json.org for correct json syntax.

Seems to only happen when I use the deepserialization.

Discussion

  • Charlie Hubbard

    Charlie Hubbard - 2009-11-28

    Using includes and excludes allows you to configure whether you want this option or not.

    new JSONSerializer().exclude("*.class")

     
  • Charlie Hubbard

    Charlie Hubbard - 2009-11-28
    • assigned_to: nobody --> charliehubbard
    • status: open --> closed
     
  • Charlie Hubbard

    Charlie Hubbard - 2009-11-28

    Starting with 1.5 exclude("*.class") on your JSONSerialzier will turn this on or off.

     
  • Charlie Hubbard

    Charlie Hubbard - 2009-11-28
    • status: closed --> open
     
  • Charlie Hubbard

    Charlie Hubbard - 2009-11-28
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB