Results 1 to 3 of 3

Thread: Problem with serialize to json string

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Location
    Ukraine
    Posts
    5

    Default Problem with serialize to json string

    Hi.
    How to serialize the form with checkboxes as boolean values, not string values like 'on' or 'off'?

    Code:
    Ext.encode(form.getForm().getValues(false))

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Use getFieldValues() instead of getValues().

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Location
    Ukraine
    Posts
    5

    Default

    Thank you very much!

Similar Threads

  1. JSON - Stringified & Serialize.
    By dduffy in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 26 Jul 2010, 4:09 AM
  2. Serialize BaseModel to JSON?
    By caoimhin in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 29 Jun 2009, 9:03 AM
  3. json string problem in dynamic menubar
    By lalit_ce in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 5 Mar 2009, 12:10 AM
  4. JsonView problem with Json string
    By ntulip in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 22 Oct 2007, 4:46 AM
  5. Problem in Reading String Using JSON Reader
    By rakesh in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 1 Aug 2007, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •