Removed JSON parsing in module

Removed the JSON parse so this can be done outside. That way any
object/array could be used.