Skip to content

Commit

Permalink
Update JsonCast.cfc
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanalbrecht authored and elpete committed May 31, 2024
1 parent 45095ad commit b92fc0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/Casts/JsonCast.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ component singleton {
any value
) {

if( isStruct( arguments.value ) ){
return arguments.value
if( !isJSON(arguments.value) ){
return arguments.value;
}

if ( isNull( arguments.value ) ) {
Expand Down

0 comments on commit b92fc0a

Please sign in to comment.