implement some json decoding