chasegiunta / craft-jason

A field type for displaying & editing JSON data.
Other
15 stars 11 forks source link

Fix bug where already decoded json would throw error #140

Open Zwartpet opened 3 years ago

Zwartpet commented 3 years ago

When using GraphQL it seems its already decoded in the validation message:

[
  "debugMessage" => "json_decode() expects parameter 1 to be string, array given",
  "file" => "/var/www/html/craft/vendor/chasegiunta/craft-jason/src/fields/JasonField.php",
  "line" => 425
]