dduarte032 / paco

Automatically exported from code.google.com/p/paco
0 stars 0 forks source link

JsonConverter cannot convert trigger signal schedules #288

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Pass a JSON string for an experiment with a triggered schedule to 
fromSingleEntityJson in JsonConverter.java

Expected Behavior: Method returns an ExperimentDAO

Actual Behavior: Method returns null. Parse error because of trigger schedule.

Error message: Could not parse json. Unexpected token (END_OBJECT), expected 
FIELD_NAME: missing property 'type' that is to contain type id  (for class 
com.google.paco.shared.model.SignalScheduleDAO)

Original issue reported on code.google.com by do...@google.com on 8 Jul 2013 at 10:04

GoogleCodeExporter commented 9 years ago
This is despite the fact that the json string contains 
signalingMechanisms\":[{\"type\":\"trigger\" ...
within the experiment definition.

Original comment by do...@google.com on 8 Jul 2013 at 10:10