implement json binding while parsing