TEXT   18
JSON ECMAScript to Python type mappings
Guest on 9th March 2023 12:10:46 AM


  1. The JSON/ECMAScript to Python type mappings are:
  2.     ---JSON---             ---Python---
  3.     null                   None
  4.     undefined              undefined  (note 1)
  5.     Boolean (true,false)   bool  (True or False)
  6.     Integer                int or long  (note 2)
  7.     Float                  float
  8.     String                 str or unicode  ( "..." or u"..." )
  9.     Array [a, ...]         list  ( [...] )
  10.     Object {a:b, ...}      dict  ( {...} )

Raw Paste

Login or Register to edit or fork this paste. It's free.