Which tools are used by shopware to detect the errors in composer.json?

I have the similar problem, that called 

**Basic plugin analysis failed.** the required composer.json file was not found, Context: [reason: The essential composer.json file for the plugin was not in the expected folder.

but my composer.json is in root. And it works in shopware.

How looks your composer Syntax?