ApplyString centralizes JSON parsing