parse json to actions