Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- 파이썬 데이터분석
- CORDA
- akka 강좌
- Play2 로 웹 개발
- 파이썬 동시성
- play2 강좌
- 주키퍼
- Adapter 패턴
- play 강좌
- 스위프트
- 엔터프라이즈 블록체인
- 파이썬 머신러닝
- 안드로이드 웹뷰
- Akka
- 이더리움
- 하이브리드앱
- 스칼라 강좌
- 스칼라 동시성
- Play2
- Actor
- 하이퍼레저 패브릭
- 파이썬
- 플레이프레임워크
- 파이썬 강좌
- Golang
- 블록체인
- hyperledger fabric
- Hyperledger fabric gossip protocol
- 그라파나
- 스칼라
Archives
- Today
- Total
목록Python 의 simplejson (1)
HAMA 블로그
Python 의 simplejson 사용하기
Python 의 simplejson 사용하기 의존성 추가 import simplejson 문자열로 JSON 형태 만들기 szJson = '{' + '"callid":{}, "nodeid": {}, "content":"{}"'.format(1, 1, "hello") + '}' 이렇게 { "key" : "value"} 식으로 만들 수 있다.출력해보면 아래와 같다.print szJson # {"callid":1, "nodeid": 1, "content":"hello world"}print type(szJson) # 문자열 JSON 형태를 JSON Object (사전타입) 로 만들기 jsonObj = simplejson.loads(szJson) 출력해보면 아래와 같다. Dictionary (사전) 타입이 되었다..
Python
2016. 10. 20. 21:31