Fixed json flag bug for offline
Fix bug for JSON

Data was not added to the JSON string.
Added rest call getData
Added rest call setData

Will run a single Action script. Pehaps it will be better
to change the call name to runAction?