分类: Python/Ruby
2011-09-08 17:07:01
以上是php处理过程
shell处理过程如下:
#echo '{"timestamp":1358496981,"status":200,"request":{"mbean":"com.xxx.yyyy.task:type=ArmorySyncController","type":"read"},"value":{"SyncOpend":true,"AllSyncRecordInfo":333}}' | sed -e 's/[{}"\\]/''/g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' timestamp:1358496981 status:200 request:mbean:com.xxx.yyyy.task:type=ArmorySyncController type:read value:SyncOpend:true AllSyncRecordInfo:333
perl和python处理过程忽略