JSON validation fixed