Function asJSON

Parse an attribute as a JSON serialized object with a fallback

0.11.0

  • if the value and fallback are both null or undefined
  • if the value is not a valid JSON object