update: Get JSON from input.