1. Added copyright notice
2. Modified process-json-request to convert the condition to a string