basic JSON conversion functions added