import json

class Example:
	foo = ""
	bar = 0

	def __init__(self, foo, bar):
		self.foo = foo
		self.bar = bar
	
value = Example("I'm a string with \"quotes\" in it.", 42)
print(f"const obj = {json.dumps(value.__dict__)};")
num = 42
print(f"const num = {json.dumps(num)};")