Fixed export count.
Switched protocol to use ljson.