Add JSON serializer for results from script engine.