Manage POST with json body from php