89de6267c7
* fix * changelog Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
15 lines
369 B
JavaScript
15 lines
369 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { helper as buildHelper } from '@ember/component/helper';
|
|
|
|
export function jsonify([target]) {
|
|
// aws secret engine needs to be able to send an empty json value on the field policy_document
|
|
if (!target) return;
|
|
return JSON.parse(target);
|
|
}
|
|
|
|
export default buildHelper(jsonify);
|