Safe work with JSON