return JSON errors + Fix eror with _uuid in query