Shared JSON related functionality for fog