Java to Json mapping using reflection