<human>:  Can you show me a Python program to json dumps remove space.
<bot>: Here is a Python program to json dumps remove space

import json

def json_dumps_remove_space(obj):
  """
  json_dumps_remove_space(obj) -> str

  Serialize an object to a JSON string, removing whitespace.
  """
  return json.dumps(obj, separators=(',', ':'))

# Enter the object
obj = {"a": 1, "b": 2}

# Calling the function
print((json_dumps_remove_space(obj)))

#Example Output
# {"a":1,"b":2}

#Remember to inspect code for bugs.