fix composer to support json format request