a small program used to parse json