Review json errors and select before insert