You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: time.rb
    path of file: ./repos/artichoke/artichoke-backend/src/extn/stdlib/json/vendor/json/add
    
    the code of the file until where you have to start completion: # frozen_string_literal: false

class Time
  # Deserializes JSON string by converting time since epoch to Time
  def self.json_create(obje
    
  def as_json(*)
    nanoseconds = [tv_usec * 1000]
    respond_to?(:tv_nsec) && nanoseconds << tv_nsec
    nanoseconds = nanoseconds.max
    {
      JSON.create_id => self.class.name,
      's' => tv_sec,
      'n' => nanoseconds
    }
  end