title: How to convert Object to javax.json.JsonValue?
body: <p>I want to patch a JSON string. I get the 'path' to the field which has to be patched, and the 'value' with which to patch.
  The value could be anything, String, int, float, boolean, array, or an object.</p>
  
  <p>How do I convert the Object to JsonValue?</p>
  
  <p>The 'replace' method in javax.json.JsonPointer class requires a JsonValue object.</p>