make JSON.get work with piped data