Fhernd icon

escribir-leer-json.py

Fhernd | PRO | 07/24/18 03:43:16 AM UTC | 0 ⭐ | 2738 👁️ | Never ⏰ | []
Python |

260 B

|

None

|

0 👍

/

0 👎

import json
 
datos = {
    'lenguaje': 'Python',
    'version': '3.6.4',
    'creator': 'Guido van Rossum'
}
 
cadena_json = json.dumps(datos)
 
print(cadena_json, type(cadena_json))
 
datos_json = json.loads(cadena_json)
 
print(datos_json, type(datos_json))

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎