class_docstr: Custom json encoder implementation.
class_docstr_tok: ["Custom","json","encoder","implementation","."]
docstr: Convert decimal objects in a json serializable format.
docstr_tok: ["Convert","decimal","objects","in","a","json","serializable","format","."]
code: def default(self, obj):
      """Convert decimal objects in a json serializable format."""
      if isinstance(obj, Decimal):
          return float(obj)
      return super().default(obj)
  
imports: from __future__ import annotations
  import json
  import os
  from copy import copy
  from datetime import datetime
  from decimal import Decimal
  from functools import cached_property
  from tempfile import NamedTemporaryFile
  from typing import IO, TYPE_CHECKING, Any, Callable, Sequence
  from uuid import uuid4
  from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
  from airflow.providers.amazon.aws.hooks.dynamodb import DynamoDBHook
  from airflow.providers.amazon.aws.hooks.s3 import S3Hook
  from airflow.providers.amazon.aws.transfers.base import AwsToAwsBaseOperator
label_desc: Use image node_id 1 for calling the JSONEncoder obj's underlying member method code with example usage: obj.default(obj) and returns: super, float