Get the data from Json forms

Hi Everyone,

How can I get the data from my jsonforms?

[original thread by strongestweak]

[Naushad Rahman]

There is two way you can get data

  1. Without redux : Using call back function “OnChange” example
    <JsonForms
    schema={schema}
    uischema={uischema}
    data={standaloneData}
    renderers={[
    …materialRenderers,
    //register custom renderer
    { tester: ratingControlTester, renderer: RatingControl }
    ]}
    cells={materialCells}
    onChange={({ errors, data }) => setStandaloneData(data)}
    />

[Naushad Rahman]

with redux : you can use state : example get(store.getState(), [‘jsonforms’, ‘core’, ‘data’])

[Naushad Rahman]

check the example GitHub - eclipsesource/jsonforms-react-seed: React-based JSON Forms Seed App

@naushad-rahman Thanks for your answer. @strongestweak Thanks for your interest in JSON Forms. If you have more questions please let us know :wink: