Added json decoding functionality for queryed values.