Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7021497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:27:29+00:00 2026-05-27T23:27:29+00:00

I simply wanted to serialize all the fields of a submitted form, like this

  • 0

I simply wanted to serialize all the fields of a submitted form, like this in PHP:

json_encode($_GET)

json.dumps(self.request.get) doesn’t work:

<type 'exceptions.TypeError'>: <bound method Request.get of <Request at 77ea190 GET http://localhost:8083/?a=value>> is not JSON serializable 
      args = ('<bound method Request.get of <Request at 77ea190...ocalhost:8083/?a=value>> is not JSON serializable',) 
      message = '<bound method Request.get of <Request at 77ea190...ocalhost:8083/?a=value>> is not JSON serializable'

I’ve tried using the CGI module and that too gives a not serializable error. I case you wondering: I use this to send data back to my template to repopulate the form fields.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:27:30+00:00Added an answer on May 27, 2026 at 11:27 pm

    self.request.get returns the get method, not what the methods return. You have to do this:

    json.dumps(self.request.GET.items())
    

    request.GET will return a UnicodeMultiDict object, and request.GET.items() will return a list of tuples, each tuples being (key, value).

    Cf. http://code.google.com/appengine/docs/python/tools/webapp/requestclass.html and http://docs.webob.org/en/latest/reference.html#id1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to serialize a complete PHP object-graph to a JSON string representation, and
Am simply experimenting with jsp and wanted to display all entries in a table,
If i wanted to simply redirect /clients/page/ to /clients.php?view=page i would use something as
So I have a block of PHP code, and I simply wanted to have
I know I could simply use a container div in this situation, but wanted
I am just simply creating a web application. I wanted to insert a line
I wanted to make a simple parser, for a pseudo code like language(kept rigid),
I wanted to let a user download a file by simply clicking a button.
Frst of all wanted to send out a huge thanks for the great feedback
The reason I ask this is recentlydesigned an application , initially wanted to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.