AnsweredAssumed Answered

Json Pointer Exception: Expected a slash to separate tokens

Question asked by ryan.biggs046791 on Mar 25, 2016
Latest reply on May 17, 2017 by jason_r_walsh667087


I am working on creating the object definitions for a custom connector using JSON. I am putting the following JSON into the definition

{"type": "string"}

 

Using the following simplified code.

 

String json = "{\"type\": \"string\"}"

ObjectDefinitions defs = new ObjectDefinitions();

ObjectDefinition def = new ObjectDefinition();

def.setInputType(ContentType.JSON);

def.setOutputType(ContentType.JSON);

def = def.withJsonSchema(json);

def.setElementName(objectTypeId);

defs.getDefinitions().add(def);

 

When I attempt to import a profile for an operation I get the error:

Failed processing profile: com.github.fge.jackson.jsonpointer.JsonPointerException: illegal pointer: expected a slash to separate tokens.

 

After doing some digging, it looks like this error comes from a method that is trying to separate a string into tokens which are used to point to JSON elements.

   https://github.com/fge/jackson-coreutils

I am not sure what is supposed to happen here. Has anyone experienced this before?

 

Thanks in advance.

Outcomes