This is late, but referring to the link RezaDorrani posted:
- Create an Instant Cloud Flow and choose PowerApps as the trigger
- Create a Compose element and in the input field, select "Ask in PowerApps" under Dynamic content. A 'Compose_input' object will appear in the input field. Now remove the 'Compose_input' from the input field.
- Now click the Expression tab and type json(), then click between the parentheses and click the Dynamic content tab, then select "Compose_inputs" and click Ok.

- Save the Flow
Go back to the PowerApp, add a button and in the OnSelect field insert (example):
Set (toJSON,
"{
'field1CanBeNamedWhateverYouNeed': '"& TextInput1.Text &"',
'field2': { 'field3YouCanNestJsonElements': '"& TextInput2.Text &"' },
'field4': {'field5AnotherNesting': '"& TextInput3.Text &"'}
}"
); NameOfYourFlow.Run(toJSON)
As you can see, 'Compose_inputs' is just a dynamic variable that is used to receive the data from the PowerApp by the Flow.