use json.Marshal instead of hardcoding