Python Forum
Deserialize Complex Json to object using Marshmallow
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deserialize Complex Json to object using Marshmallow
#3
(Dec-09-2021, 06:23 PM)ibreeden Wrote: Then you have to inspect what request.get_json() gives as a result.

The request_json gives me this

{
  'first_name': 'John',
  'last_name': 'Doe',
  'address': {
    'street_name_one': '123 Main Street',
    'street_name_two': 'Apt 123',
    'city': 'TestCity',
    'state': 'TX',
    'zip_code': '12345'
   }
}
Reply


Messages In This Thread
RE: Deserialize Complex Json to object using Marshmallow - by tlopezdh - Dec-09-2021, 06:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  finding and deleting json object GrahamL 1 4,938 Dec-10-2020, 04:11 PM
Last Post: bowlofred
  Object of type set is not JSON serializable enigma619 5 12,626 Dec-19-2019, 03:30 PM
Last Post: enigma619
  Object of type Scoreboard is not JSON serializable lsepolis123 9 9,675 Aug-13-2019, 11:22 AM
Last Post: lsepolis123
  Object type of Node to json bhojendra 4 4,678 Apr-28-2019, 01:36 PM
Last Post: bhojendra
  Reading complex JSON dictionaries Gromis 5 4,011 Jul-08-2018, 10:26 PM
Last Post: Gromis
  Object of type 'Status' is not JSON serializable ndakena 1 4,524 May-28-2018, 06:35 AM
Last Post: buran
  Object madness - JSON Notation confusion execsys 4 3,849 May-03-2018, 08:56 AM
Last Post: buran
  serialize/deserialize data from/to json bb8 1 3,013 Mar-09-2018, 08:11 PM
Last Post: Gribouillis
  want to know the kind of object whether its a python or json object johnkennykumar 5 77,016 Jan-21-2017, 08:47 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020