add operator to stateevaluator in json api

Fixes #57
Merge pull request #64 from mzanetti/fix-ruledetails-2

add operator to stateevaluator in json api
don't pack invalid/empty stateevaluator contents

Fixes #56