Use non-error functions for JSON decoding and return tuples for results.